Sarkari Naukri and Naukri

Thursday, 4 April 2013

What is hook in drupal ?


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 (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