- Database Tables and Data
- Module Navigation
- Displaying your Pages
- Common Tasks
- Example Modules
This function registers a new hook in the database.
The second $when parameter is the string identifying where in the core function the hook should be associated. See the code hooks page for more information on this and the available core functions that can have hooks.
The priority parameter determines the priority of the hook. It accepts any value from 1-100. 50 is the default.
The final parameter tells the function to ONLY register the hook if an identical hook doesn't already exist. Identity is determined by all the fields passed EXCEPT the priority field.