Commit 2a6bd603 authored by webchick's avatar webchick

#528984 by catch: Remove duplicate check for Drupal maintenance mode.

parent 708f3b97
......@@ -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);
}
/**
......
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