MAINTENANCE_MODE

Same name in this branch
  1. 11.x core/authorize.php \MAINTENANCE_MODE
Same name in other branches
  1. 7.x authorize.php \MAINTENANCE_MODE
  2. 7.x update.php \MAINTENANCE_MODE
  3. 7.x install.php \MAINTENANCE_MODE
  4. 9 core/authorize.php \MAINTENANCE_MODE
  5. 9 core/install.php \MAINTENANCE_MODE
  6. 8.9.x core/authorize.php \MAINTENANCE_MODE
  7. 8.9.x core/install.php \MAINTENANCE_MODE
  8. 10 core/authorize.php \MAINTENANCE_MODE
  9. 10 core/install.php \MAINTENANCE_MODE

Global flag to indicate the site is in installation mode.

The constant is defined using define() instead of const so that PHP versions prior to 5.3 can display proper PHP requirements instead of causing a fatal error.

5 uses of MAINTENANCE_MODE
hook_cache_flush in core/core.api.php
Flush all persistent and static caches.
StatusReport::preRenderGroupRequirements in core/lib/Drupal/Core/Render/Element/StatusReport.php
#pre_render callback to group requirements.
StatusReportPage::preRenderCounters in core/modules/system/src/Element/StatusReportPage.php
#pre_render callback to create counter elements.
template_preprocess_install_page in core/includes/theme.inc
Prepares variables for install page templates.
_drupal_maintenance_theme in core/includes/theme.maintenance.inc
Sets up the theming system for maintenance page.

File

core/install.php, line 22

Code

define('MAINTENANCE_MODE', 'install');

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.