You are here

constant MAINTENANCE_MODE in Zircon Profile 8.0

Same name in this branch
  1. 8.0 core/authorize.php \MAINTENANCE_MODE
  2. 8.0 core/install.php \MAINTENANCE_MODE
Same name and namespace in other branches
  1. 8 core/authorize.php \MAINTENANCE_MODE
  2. 8 core/install.php \MAINTENANCE_MODE

Global flag to identify update.php and authorize.php runs.

Identifies update.php and authorize.php runs, avoiding unwanted operations such as css/js preprocessing and translation, and solves some theming issues. The flag is checked in other places in Drupal code (not just authorize.php).

4 uses of MAINTENANCE_MODE
hook_cache_flush in core/core.api.php
Flush all persistent and static caches.
template_preprocess_status_report in core/modules/system/system.admin.inc
Prepares variables for status report template.
user_role_permissions in core/modules/user/user.module
Determine the permissions for one or more roles.
_drupal_maintenance_theme in core/includes/theme.maintenance.inc
Sets up the theming system for maintenance page.

File

core/authorize.php, line 42
Administrative script for running authorized file operations.

Code

const MAINTENANCE_MODE = 'update';