Variable substitution system: Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 1,160: Line 1,160:
=Custom substitution variables=
=Custom substitution variables=
Custom substitution variables can be added by external modules.
Custom substitution variables can be added by external modules.
For this, the external module must embed a file called  '''mymodule/core/substitutions/functions_mymodules.lib.php''' and set the ->multipart['substitution'] = 1 into the module descriptor.
For this, the external module must embed a file called  '''mymodule/core/substitutions/functions_mymodules.lib.php''' and set the  
<code>->module_parts['substitutions'] = 1 </code>
into the module descriptor.


= How it work =
= How it work =

Navigation menu