Changes

Line 21: Line 21:     
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).
 +
 +
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