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.

▾ 10 функции вызывают drupal_maintenance_theme()

db_connect in includes/database.mysql.inc
Инициализирует соединение с базой данных.
db_set_active in includes/database.inc
Активирует базу данных для последующих запросов.
install_already_done_error in ./install.php
Show an error page when Drupal has already been installed.
install_change_settings in ./install.php
Configure and rewrite settings.php.
install_check_requirements in ./install.php
Page to check installation requirements and report any errors.
install_complete in ./install.php
Page displayed when the installation is complete. Called from install.php.
install_missing_modules_error in ./install.php
Show an error page when Drupal is missing required modules.
install_no_profile_error in ./install.php
Show an error page when there are no profiles available.
install_select_locale in ./install.php
Find all .po files for the current profile and allow admin to select which to use.
install_select_profile in ./install.php
Find all .profile files and allow admin to select which to install.

Код

<?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 = '';
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему