Hooks system: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 13: Line 13:
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.
This means that when a context you hook will happen, your module hook code will be called.
This means that when a context you hook will happen, your module hook code will be called.
To do that, just edit your /htdocs/core/modules/modYourModuleName.class.php and edit the $this->module_parts variable with something like this:
To do that, just edit your '''/htdocs/''yourmodulename''/modules/mod''YourModuleName''.class.php''' and edit the '''$this->module_parts''' variable with something like this:
<source lang="php">
<source lang="php">
$this->module_parts = array(
$this->module_parts = array(

Navigation menu