Ajout d'un fonction de surcharge SLUG_traiter_av_pdf ou traiter_av_pdf
pour réaliser un traitement php avant la generation des pdfs
This commit is contained in:
parent
c45e989b2a
commit
d2ea3dee0f
2 changed files with 7 additions and 1 deletions
|
@ -113,6 +113,12 @@ function formulaires_gamumail_traiter_dist($slug, $auteur = 0, $Tclient = [], $T
|
|||
|
||||
$pieces_jointes = [];
|
||||
|
||||
if ($f = charger_fonction('traiter_av_pdf', 'gamumail', true)) {
|
||||
$options = $f($options, $auteur, $Tclient, $Tpdf);
|
||||
} elseif ($f = charger_fonction($slug . '_traiter_av_pdf', 'gamumail', true)) {
|
||||
$options = $f($options, $auteur, $Tclient, $Tpdf);
|
||||
}
|
||||
|
||||
// les documents joints
|
||||
if (!empty($Tid_doc)) {
|
||||
foreach ($Tid_doc as $id_document) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<paquet
|
||||
prefix="gamumail"
|
||||
categorie="communication"
|
||||
version="1.0.5"
|
||||
version="1.0.6"
|
||||
etat="dev"
|
||||
compatibilite="[3.3.0-dev;3.3.*]"
|
||||
logo="prive/themes/spip/images/gamumail-64.png"
|
||||
|
|
Loading…
Add table
Reference in a new issue