Skip to content
Snippets Groups Projects
Commit 20a1e3ed authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #13405 by Moshe: make you actually do something useful with the init...

- Patch #13405 by Moshe: make you actually do something useful with the init hook.  A recent patch to 4.5 and HEAD made this patch run too early in the request (for non-cached pages).
parent 995277f4
No related branches found
Tags 4.4.1
No related merge requests found
......@@ -230,11 +230,10 @@ function drupal_page_header() {
if (variable_get('dev_timer', 0)) {
timer_start();
}
bootstrap_invoke_all('init');
if (variable_get('cache', 0)) {
if ($cache = page_get_cache()) {
bootstrap_invoke_all('init');
// Set default values:
$date = gmdate('D, d M Y H:i:s', $cache->created) .' GMT';
$etag = '"'. md5($date) .'"';
......
......@@ -9,11 +9,10 @@
/**
* Initialize all modules.
*
* To change the required set of modules, change this function as well as
* system_listing() and module_list().
*/
function module_init() {
module_load_all();
module_invoke_all('init');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment