Skip navigation
Help

MAINTENANCE_MODE

  1. drupal
    1. 6 drupal/install.php
    2. 6 drupal/update.php
    3. 7 drupal/update.php
    4. 7 drupal/authorize.php
    5. 7 drupal/install.php

Global flag to identify update.php and authorize.php runs, and so avoid various unwanted operations, such as hook_init() and hook_exit() invokes, css/js preprocessing and translation, and solve some theming issues. This flag is checked on several places in Drupal code (not just authorize.php).

File

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

Code

define('MAINTENANCE_MODE', 'update')