You are here

constant MAINTENANCE_MODE in Drupal 6

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

7 uses of MAINTENANCE_MODE
drupal_flush_all_caches in includes/common.inc
Flush all cached data on the site.
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.
drupal_goto in includes/common.inc
Send the user to a different Drupal page.
update_flush_caches in modules/update/update.module
Implementation of hook_flush_caches().

... See full list

File

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

Code

define('MAINTENANCE_MODE', 'update');