drupal_maintenance_theme
includes/bootstrap.inc, строка 1003
- Версии
- 5 – 6
drupal_maintenance_theme()
Enables use of the theme system without requiring database access. Since
there is not database access no theme will be enabled and the default
themeable functions will be called. Some themeable functions can not be used
without the full Drupal API loaded. For example, theme_page()
is
unavailable and theme_maintenance_page()
must be used in its place.
Код
<?php
function drupal_maintenance_theme() {
global $theme;
require_once './includes/path.inc';
require_once './includes/theme.inc';
require_once './includes/common.inc';
require_once './includes/unicode.inc';
require_once './modules/filter/filter.module';
unicode_check();
drupal_add_css(drupal_get_path('module', 'system') .'/defaults.css', 'module');
drupal_add_css(drupal_get_path('module', 'system') .'/system.css', 'module');
$theme = '';
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии