diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-11-24 10:41:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-11-24 10:41:40 +0000 |
commit | 5083e13522d29f0865144a02f448a084818b2f06 (patch) | |
tree | cbc62a6b74122cc2cea59ed955e85306e2faab01 /includes/bootstrap.inc | |
parent | 8e985b3fbc5ca8e113ed0f1bfa288e3eb2bfd5a5 (diff) | |
download | brdo-5083e13522d29f0865144a02f448a084818b2f06.tar.gz brdo-5083e13522d29f0865144a02f448a084818b2f06.tar.bz2 |
- Patch #333143 by justinrandell: cleaning up the Drupal bootstrap code, removing bootstrap flag in system table.
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index adf56c85c..a664fc857 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -674,18 +674,6 @@ function page_get_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. * @@ -790,13 +778,6 @@ function drupal_page_cache_header($cache) { } /** - * 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. * * @param $obj @@ -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'); } |