Skip to main content

Use it for the mechanism that allows to extends module's functionality without editing its code.

Hooks are just normal PHP functions which allow a developer to extend functionality. They are used by Drupal core, and contributed modules.

Code Language (used for syntax highlighting): default