Commit 370d07e9 authored by Dries's avatar Dries
Browse files

- Patch #624882 by jhodgdon: fixed typos in hooks section page.

parent 7080b8f3
...@@ -352,19 +352,19 @@ function module_disable($module_list) { ...@@ -352,19 +352,19 @@ function module_disable($module_list) {
* Allow modules to interact with the Drupal core. * Allow modules to interact with the Drupal core.
* *
* Drupal's module system is based on the concept of "hooks". A hook is a PHP * 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 * function that is named foo_bar(), where "foo" is the name of the module
* filename is thus foo.module) and "bar" is the name of the hook. Each hook has * (whose filename is thus foo.module) and "bar" is the name of the hook. Each
* a defined set of parameters and a specified result type. * 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 * To extend Drupal, a module need simply implement a hook. When Drupal wishes
* allow intervention from modules, it determines which modules implement a hook * to allow intervention from modules, it determines which modules implement a
* and call that hook in all enabled modules that implement it. * hook and calls that hook in all enabled modules that implement it.
* *
* The available hooks to implement are explained here in the Hooks section of * The available hooks to implement are explained here in the Hooks section of
* the developer documentation. The string "hook" is used as a placeholder for * the developer documentation. The string "hook" is used as a placeholder for
* the module name is the hook definitions. For example, if the module file is * the module name in the hook definitions. For example, if the module file is
* called example.module, then hook_help() as implemented by that module would be * called example.module, then hook_help() as implemented by that module would
* defined as example_help(). * be defined as example_help().
*/ */
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment