summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries <dries@buytaert.net>2011-10-16 15:32:58 -0400
committerDries <dries@buytaert.net>2011-10-16 15:32:58 -0400
commitedcf08249abf7b2e81740526febdc098ddddf6b3 (patch)
treee9fed08289b01ed3d4363a449d9ecb06ec89ce63
parentfecc8efa5f76390d765144605794cd3fece066b3 (diff)
downloadbrdo-edcf08249abf7b2e81740526febdc098ddddf6b3.tar.gz
brdo-edcf08249abf7b2e81740526febdc098ddddf6b3.tar.bz2
- Patch #1309298 by sven.lauer: document that hook_(en|dis)able implementations should live in .install files.
-rw-r--r--modules/system/system.api.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index cff51c4ff..c760462fb 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -3325,7 +3325,8 @@ function hook_uninstall() {
/**
* 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 hook_install()
@@ -3338,7 +3339,8 @@ function hook_enable() {
/**
* 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_modules_disabled()