Commit f123d4e1 authored by Dries's avatar Dries

- 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
...@@ -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()
......
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