constant MAINTENANCE_MODE

Same name in this branch

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).

6 uses of MAINTENANCE_MODE
error_displayable in drupal/core/includes/errors.inc
Determines whether an error should be displayed.
hook_cache_flush in drupal/core/modules/system/system.api.php
Flush all persistent and static caches.
menu_get_custom_theme in drupal/core/includes/menu.inc
Gets the custom theme for the current page, if there is one.
theme_status_report in drupal/core/modules/system/system.admin.inc
Returns HTML for the status report.
_drupal_bootstrap_full in drupal/core/includes/common.inc
Temporary BC function for scripts not using DrupalKernel.

... See full list

File

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

Code

const MAINTENANCE_MODE = 'update';