constant MAINTENANCE_MODE

Same name in this branch
  1. 6.x drupal-6.x/install.php \MAINTENANCE_MODE
  2. 6.x drupal-6.x/update.php \MAINTENANCE_MODE
Same name and namespace in other branches
  1. 7.x drupal-7.x/install.php \MAINTENANCE_MODE
  2. 7.x drupal-7.x/update.php \MAINTENANCE_MODE
  3. 7.x drupal-7.x/authorize.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).

Archivo

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

Código

define('MAINTENANCE_MODE', 'update')