From 5083e13522d29f0865144a02f448a084818b2f06 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 24 Nov 2008 10:41:40 +0000 Subject: - Patch #333143 by justinrandell: cleaning up the Drupal bootstrap code, removing bootstrap flag in system table. --- includes/bootstrap.inc | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'includes/bootstrap.inc') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index adf56c85c..a664fc857 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -673,18 +673,6 @@ function page_get_cache() { return $cache; } -/** - * Call all init or exit hooks without including all modules. - * - * @param $hook - * The name of the bootstrap hook we wish to invoke. - */ -function bootstrap_invoke_all($hook) { - foreach (module_implements($hook) as $module) { - module_invoke($module, $hook); - } -} - /** * Includes a file with the provided type and name. This prevents * including a theme, engine, module, etc., more than once. @@ -789,13 +777,6 @@ function drupal_page_cache_header($cache) { print $cache->data; } -/** - * Define the critical hooks that force modules to always be loaded. - */ -function bootstrap_hooks() { - return array('boot', 'exit'); -} - /** * Unserializes and appends elements from a serialized string. * @@ -1157,14 +1138,14 @@ function _drupal_bootstrap($phase) { if (!$cache || $cache_mode != CACHE_AGGRESSIVE) { // Load module handling. require_once DRUPAL_ROOT . '/includes/module.inc'; - bootstrap_invoke_all('boot'); + module_invoke_all('boot'); } // If there is a cached page, display it. if ($cache) { drupal_page_cache_header($cache); // If the skipping of the bootstrap hooks is not enforced, call hook_exit. if ($cache_mode != CACHE_AGGRESSIVE) { - bootstrap_invoke_all('exit'); + module_invoke_all('exit'); } // We are done. exit; @@ -1368,7 +1349,7 @@ function drupal_get_schema($table = NULL, $rebuild = FALSE) { // "prime" module_list() here to to values we want, specifically // "yes rebuild the list and don't limit to bootstrap". // TODO: Remove this call after http://drupal.org/node/222109 is fixed. - module_list(TRUE, FALSE); + module_list(TRUE); module_load_all_includes('install'); } -- cgit v1.2.3