diff options
-rw-r--r-- | includes/module.inc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/includes/module.inc b/includes/module.inc index 4b506a0d3..4d25994f7 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -324,12 +324,7 @@ function module_disable($module_list) { */ function module_hook($module, $hook) { $function = $module . '_' . $hook; - if (defined('MAINTENANCE_MODE')) { - return function_exists($function); - } - else { - return drupal_function_exists($function); - } + return function_exists($function) || drupal_function_exists($function); } /** |