constant MAINTENANCE_MODE

  1. 7.x drupal-7.x/install.php MAINTENANCE_MODE
  2. 7.x drupal-7.x/authorize.php MAINTENANCE_MODE
  3. 7.x drupal-7.x/update.php MAINTENANCE_MODE
  4. 6.x drupal-6.x/install.php MAINTENANCE_MODE
  5. 6.x drupal-6.x/update.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 hook_init() and hook_exit() invokes, css/js preprocessing and translation, and solves some theming issues. The flag is checked in other places in Drupal code (not just authorize.php).

10 uses of MAINTENANCE_MODE
ajax_footer in drupal-7.x/includes/ajax.inc
Performs end-of-Ajax-request tasks.
drupal_aggregate_css in drupal-7.x/includes/common.inc
Default callback to aggregate CSS files and inline content.
drupal_exit in drupal-7.x/includes/common.inc
Performs end-of-request tasks.
drupal_get_js in drupal-7.x/includes/common.inc
Returns a themed presentation of all JavaScript code for the current page.
drupal_installation_attempted in drupal-7.x/includes/bootstrap.inc
Returns TRUE if a Drupal installation is currently being attempted.

... See full list

File

drupal-7.x/authorize.php, line 36
Administrative script for running authorized file operations.

Code

define('MAINTENANCE_MODE', 'update')