Triggers system: Difference between revisions

Jump to navigation Jump to search
m
(→‎Execute your own code on a Dolibarr's action: Added the new folder for v3.2.x)
Line 22: Line 22:
By creating such a file with name as in the example, your new trigger file will be executed each time a Dolibarr business event occurs but only if the module Facture is enabled.
By creating such a file with name as in the example, your new trigger file will be executed each time a Dolibarr business event occurs but only if the module Facture is enabled.


Note: starting from Dolibarr v3.2.x, you have to place triggers inside core/ folder instead of includes/ (eg: htdocs/core/triggers/interface_modMyModule_Xxx.class.php).
'''Note''': starting from Dolibarr v3.2.x, you have to place triggers inside the '''core/''' folder instead of includes/ (eg: htdocs/core/triggers/interface_modMyModule_Xxx.class.php).


Note2: You can also place the triggers in your own module's subdirectly. Eg: if your module resides in htdocs/mymodule/, then you can place your triggers inside htdocs/mymodule/core/triggers/
'''Note2''': You can also place the triggers in your own module's subdirectly. Eg: if your module resides in htdocs/mymodule/, then you can place your triggers inside htdocs/mymodule/core/triggers/




439

edits

Navigation menu