Hooks system: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
* Hooks are functions that can be overloaded by your own. You decide if your code is added to standard Dolibarr code or if it replaces Dolibarr code. You can find overloadable functions by searching for "'''executeHooks('''"
* Hooks are functions that can be overloaded by your own. You decide if your code is added to standard Dolibarr code or if it replaces Dolibarr code. You can find overloadable functions by searching for "'''executeHooks('''"


= Implementation =
= Add a hook to allow to insert code =
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.


Navigation menu