You are here

constant MAINTENANCE_MODE in Drupal 7

Same name in this branch
  1. 7 update.php \MAINTENANCE_MODE
  2. 7 authorize.php \MAINTENANCE_MODE
  3. 7 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
  3. 6 update.php \MAINTENANCE_MODE
  4. 6 install.php \MAINTENANCE_MODE
  5. 9 core/authorize.php \MAINTENANCE_MODE
  6. 9 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 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).

8 uses of MAINTENANCE_MODE
ajax_footer in includes/ajax.inc
Performs end-of-Ajax-request tasks.
drupal_exit in includes/common.inc
Performs end-of-request tasks.
drupal_installation_attempted in includes/bootstrap.inc
Returns TRUE if a Drupal installation is currently being attempted.
error_displayable in includes/errors.inc
Determines whether an error should be displayed.
menu_get_custom_theme in includes/menu.inc
Gets the custom theme for the current page, if there is one.

... See full list

File

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

Code

define('MAINTENANCE_MODE', 'update');