Skip to content
Snippets Groups Projects
Commit 8cf387a3 authored by Angie Byron's avatar Angie Byron
Browse files

#454462 by JohnAlbin: Fire MODULE_preprocess_maintenance_page functions.

parent b7c27c32
No related branches found
No related tags found
No related merge requests found
......@@ -36,12 +36,15 @@ function _drupal_maintenance_theme() {
$theme = 'minnelli';
}
else {
// Load module basics (needed for hook invokes).
$module_list['system']['filename'] = 'modules/system/system.module';
$module_list['filter']['filename'] = 'modules/filter/filter.module';
module_list(TRUE, FALSE, $module_list);
drupal_load('module', 'system');
drupal_load('module', 'filter');
if (!db_is_active()) {
// Because we are operating in a crippled environment, we need to
// bootstrap just enough to allow hook invocations to work.
$module_list['system']['filename'] = 'modules/system/system.module';
$module_list['filter']['filename'] = 'modules/filter/filter.module';
module_list(TRUE, FALSE, $module_list);
drupal_load('module', 'system');
drupal_load('module', 'filter');
}
$theme = variable_get('maintenance_theme', 'minnelli');
}
......
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