Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
370d07e9
Commit
370d07e9
authored
Nov 8, 2009
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#624882
by jhodgdon: fixed typos in hooks section page.
parent
7080b8f3
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/module.inc
+9
-9
9 additions, 9 deletions
includes/module.inc
with
9 additions
and
9 deletions
includes/module.inc
+
9
−
9
View file @
370d07e9
...
...
@@ -352,19 +352,19 @@ function module_disable($module_list) {
* 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.
* 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.
*
* 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 call that hook in all enabled modules that implement it.
* 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 call
s
that hook in all enabled modules that implement it.
*
* 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 module name i
s
the hook definitions. For example, if the module file is
* called example.module, then hook_help() as implemented by that module would
be
* defined as example_help().
* the module name i
n
the hook definitions. For example, if the module file is
* called example.module, then hook_help() as implemented by that module would
*
be
defined as example_help().
*/
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment