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

File

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

Code

const MAINTENANCE_MODE = 'update';

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!authorize.php/constant/MAINTENANCE_MODE/8.1.x