Skip to content
Snippets Groups Projects
Commit f123d4e1 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #1309298 by sven.lauer: document that hook_(en|dis)able...

- Patch #1309298 by sven.lauer: document that hook_(en|dis)able implementations should live in .install files.
parent a7bb6c57
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -2939,7 +2939,8 @@ function hook_uninstall() { ...@@ -2939,7 +2939,8 @@ function hook_uninstall() {
/** /**
* Perform necessary actions after module is enabled. * Perform necessary actions after module is enabled.
* *
* The hook is called every time the module is enabled. * The hook is called every time the module is enabled. It should be
* implemented in the module's .install file.
* *
* @see module_enable() * @see module_enable()
* @see hook_install() * @see hook_install()
...@@ -2952,7 +2953,8 @@ function hook_enable() { ...@@ -2952,7 +2953,8 @@ function hook_enable() {
/** /**
* Perform necessary actions before module is disabled. * Perform necessary actions before module is disabled.
* *
* The hook is called every time the module is disabled. * The hook is called every time the module is disabled. It should be
* implemented in the module's .install file.
* *
* @see hook_uninstall() * @see hook_uninstall()
* @see hook_modules_disabled() * @see hook_modules_disabled()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment