31,003
edits
Gschratzer (talk | contribs) No edit summary Tag: 2017 source edit |
Tag: 2017 source edit |
||
| Line 38: | Line 38: | ||
1- Initialize the HookManager object | 1- Initialize the HookManager object | ||
For a page, put this in the beginning of the page (after the include of the main): | |||
<syntaxHighlight lang="php"> | <syntaxHighlight lang="php"> | ||
| Line 52: | Line 54: | ||
Note: you can set several contexts in the same init (for example if you want to have a common context into several pages and want also a specific context dedicated to your page). | Note: you can set several contexts in the same init (for example if you want to have a common context into several pages and want also a specific context dedicated to your page). | ||
For a method or function, you can getthe hook manager with | |||
<syntaxHighlight lang="php"> | |||
global $hookmanager; | |||
</syntaxHighlight> | |||