answersLogoWhite

0

What are hooks?

User Avatar

Anonymous

11y ago
Updated: 8/17/2019

Hooks are curved, barbed items for catching fish.
Hooks allow modules to interact with the Drupal core. Drupal's module system is based on the concept of "hooks". A hook is a PHP function that is named foo_bar(), where "foo" is the name of the module and "bar" is the name of the hook. Each hook has a defined set of parameters and a specified result type.

To extend Drupal, a module need simply implement a hook. When Drupal wishes to allow intervention from modules, it determines which modules implement a hook and calls that hook in all enabled modules that implement it.

User Avatar

Wiki User

11y ago

What else can I help you with?