31,003
edits
| Line 95: | Line 95: | ||
=== Autres tags personnalisés === | === Autres tags personnalisés === | ||
Si vous voulez ajouter un champ de substitution non prédéfini, il y a une solution: | Si vous voulez ajouter un champ de substitution non prédéfini, il y a une solution: | ||
* Ajouter un fichier nommé '''htdocs/core | * Ajouter un fichier nommé '''htdocs/core/substitutions/functions_mymodule.lib.php''' (htdocs/includes/modules/substitutions/functions_mymodule.lib.php avec 3.1 ou précédentes) | ||
* Dans ce fichier , écrivez juste une fonction du genre: | * Dans ce fichier , écrivez juste une fonction du genre: | ||
<source lang="php"> | <source lang="php"> | ||
/** Function called to complete substitution array (before generating on ODT, or a personalized email) | /** Function called to complete substitution array (before generating on ODT, or a personalized email) | ||
* functions xxx_completesubstitutionarray are called by make_substitutions() if file | * functions xxx_completesubstitutionarray are called by make_substitutions() if file | ||
* is inside directory htdocs/ | * is inside directory htdocs/core/substitutions | ||
* | * | ||
* @param array $substitutionarray Array with substitution key=>val | * @param array $substitutionarray Array with substitution key=>val | ||