From f123d4e121b635356dfbadab33e2e5ce39f89066 Mon Sep 17 00:00:00 2001 From: Dries <dries@buytaert.net> Date: Sun, 16 Oct 2011 15:32:50 -0400 Subject: [PATCH] - Patch #1309298 by sven.lauer: document that hook_(en|dis)able implementations should live in .install files. --- modules/system/system.api.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/system/system.api.php b/modules/system/system.api.php index d040ab39834a..b9e44891b0bb 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -2939,7 +2939,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() @@ -2952,7 +2953,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() -- GitLab