Same name in this branch
  1. 6.x install.php \MAINTENANCE_MODE
  2. 6.x update.php \MAINTENANCE_MODE
Same name and namespace in other branches
  1. 10 core/authorize.php \MAINTENANCE_MODE
  2. 10 core/install.php \MAINTENANCE_MODE
  3. 7.x install.php \MAINTENANCE_MODE
  4. 7.x authorize.php \MAINTENANCE_MODE
  5. 7.x update.php \MAINTENANCE_MODE
  6. 8.9.x core/authorize.php \MAINTENANCE_MODE
  7. 8.9.x core/install.php \MAINTENANCE_MODE
  8. 9 core/authorize.php \MAINTENANCE_MODE
  9. 9 core/install.php \MAINTENANCE_MODE

Global flag to identify update.php run, 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 update.php).

2 uses of MAINTENANCE_MODE
drupal_get_css in includes/common.inc
Returns a themed representation of all stylesheets that should be attached to the page.
drupal_get_js in includes/common.inc
Returns a themed presentation of all JavaScript code for the current page.

File

./update.php, line 21
Administrative page for handling updates from one Drupal version to another.

Code

define('MAINTENANCE_MODE', 'update');