, , . WSOD, , , , . , .inc
function module_invoke_all($hook) {
$args = func_get_args();
unset($args[0]);
$return = array();
foreach (module_implements($hook) as $module) {
print "Starting loading $module <br />";
$function = $module . '_' . $hook;
if (function_exists($function)) {
$result = call_user_func_array($function, $args);
if (isset($result) && is_array($result)) {
$return = array_merge_recursive($return, $result);
}
elseif (isset($result)) {
$return[] = $result;
}
}
print "Finished loading $module <br />";
}
return $return;
}
, , , "Finish loading $module", , ... .
, status = 0 bootstrap = 0 :
UPDATE system SET status = 0, bootstrap = 0 WHERE name = 'module_name' LIMIT 1
: Drupal White Screen of Death (WSOD)