Article published
-----------------
The article "CVT forms' charger() function " was validated by Paolo.
** CVT forms' charger() function **
by Martin McCaffery on Saturday 12 September 2009
How to define the function The charger() function in a form XXX (which is
output in a template using #FORMULAIRE_XXX) is defined in either the
formulaires/xxx.php or the formulaires/xxx/charger.php file. The folder
formulaires/ may be within a plugin's folder or the general squelettes
folder.
The function must be named function formulaires_xxx_charger_dist(). The
_dist suffix allows developers to redefine the function to change its
behaviour by creating a function formulaires_xxx_charger() function.
The function's arguments The charger() function automatically receives the
value of each argument passed to the #FORMULAIRE_XXX tag, in the same order
in which they are passed to the tag. (...)