31,003
edits
| Line 24: | Line 24: | ||
$hookmanager->initHooks() takes 1 parameter (an array of contexts) and activate the hooks management for this script: | $hookmanager->initHooks() takes 1 parameter (an array of contexts) and activate the hooks management for this script: | ||
- ''''context'''' is | - ''''context'''' is a context string. This is simply a indicator that hooking functions can use to detect in which context they are called. | ||
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 deidcated to your page). | |||