summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-07 05:15:51 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-07 05:15:51 +0000
commit97c14a993ee998e8856d940c9f3fd35b520f4362 (patch)
tree237716784fc68a5cf6b50586b86254d50a32a589 /includes
parent8173fc1aa338a21bc2ea119fba37437cf3209a44 (diff)
downloadbrdo-97c14a993ee998e8856d940c9f3fd35b520f4362.tar.gz
brdo-97c14a993ee998e8856d940c9f3fd35b520f4362.tar.bz2
- Patch #642782 by plach, Dave Reid, greggles, mfb: hook_language_init() is a bootstrap hook and needs bootstrap_invoke_all().
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index ebb476f8d..d2c739aab 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -859,10 +859,10 @@ function drupal_page_is_cacheable($allow_caching = NULL) {
}
/**
- * Call all init or exit hooks without including all modules.
+ * Invoke a bootstrap hook in all bootstrap modules that implement it.
*
* @param $hook
- * The name of the bootstrap hook we wish to invoke.
+ * The name of the bootstrap hook to invoke.
*/
function bootstrap_invoke_all($hook) {
// _drupal_bootstrap_page_cache() already loaded the bootstrap modules, so we
@@ -1163,7 +1163,7 @@ function drupal_serve_page_from_cache(stdClass $cache) {
* Define the critical hooks that force modules to always be loaded.
*/
function bootstrap_hooks() {
- return array('boot', 'exit', 'watchdog');
+ return array('boot', 'exit', 'watchdog', 'language_init');
}
/**
@@ -2086,7 +2086,7 @@ function drupal_language_initialize() {
}
// Allow modules to react on language system initialization in multilingual
// environments.
- module_invoke_all('language_init', $types);
+ bootstrap_invoke_all('language_init');
}
}