Line 17:
Line 17:
* change of the primary status of objects
* change of the primary status of objects
There is another feature for developers to inject custom code in the application called the [[Hooks system]]. Note, for historic reason, when you send an email, this generates also a trigger call even if this case is not among the 2 allowed.
There is another feature for developers to inject custom code in the application called the [[Hooks system]]. Note, for historic reason, when you send an email, this generates also a trigger call even if this case is not among the 2 allowed.
+
So, to add your own code that will be triggered by a Dolibarr trigger, this is the process:
So, to add your own code that will be triggered by a Dolibarr trigger, this is the process: