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 hookhas a defined set of parameters and a specified result type. To extend Drupal, a module need simply implement a hook.
No hay comentarios:
Publicar un comentario