Line 11:
Line 11:
To implement a hook in your own module (so that your module can be ''hooked'' by others), you have two steps to follow.
To implement a hook in your own module (so that your module can be ''hooked'' by others), you have two steps to follow.
−
These steps must be followed for every php script of your module where you want to implement hooks.
+
These steps must be followed for every php script of your module where you want to implement hooks. And of course, this is also how hooks are implemented in every core Dolibarr's modules.