Hooks system: Difference between revisions

Jump to navigation Jump to search
Line 62: Line 62:
= Implement the Hook =
= Implement the Hook =


To use a hook (add or replace a part of code), you first need to already have defined a module (see the wiki for that), and then you need to do 2 things:
To use a hook (add or replace a part of code), you first need to already have defined a module descriptor (see [[Module_development#Create_your_module_descriptor]]), and then you need to do 2 things:


1- add your module to the list of contexts you want to hook on.
1- add your module to the list of contexts you want to hook on.

Navigation menu