Wednesday, 15 April 2015

What is hooks in Drupal?

Allow modules to interact with the Drupal core.
A hook is a PHP function that is named foo_bar(), where “foo” is the name of the module (whose filename is thus foo.module) and “bar” is the name of the hook.
Each hook has a defined set of parameters and a specified result type.

No comments:

Post a Comment