diff options
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index ed274055d..2cfbdacb7 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -144,13 +144,8 @@ function drupal_page_header() { ** call all init() and exit() hooks without including all modules ** only use those hooks for critical operations */ - foreach (module_list(0, 1) as $module) { - if (is_array($module) && $module['bootstrap']) { - include_once $module['filename']; - foreach (bootstrap_hooks() as $hook) { - module_invoke($module['name'], $hook); - } - } + foreach (bootstrap_hooks() as $hook) { + module_invoke_all($hook); } exit(); } |