constant MAINTENANCE_MODE
- 7.x drupal-7.x/install.php MAINTENANCE_MODE
- 7.x drupal-7.x/authorize.php MAINTENANCE_MODE
- 7.x drupal-7.x/update.php MAINTENANCE_MODE
- 6.x drupal-6.x/install.php MAINTENANCE_MODE
- 6.x drupal-6.x/update.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 drupal-6.x/
includes/ common.inc - Flush all cached data on the site.
- drupal_get_css in drupal-6.x/
includes/ common.inc - Returns a themed representation of all stylesheets that should be attached to the page.
- drupal_get_js in drupal-6.x/
includes/ common.inc - Returns a themed presentation of all JavaScript code for the current page.
- drupal_goto in drupal-6.x/
includes/ common.inc - Send the user to a different Drupal page.
- update_flush_caches in drupal-6.x/
modules/ update/ update.module - Implementation of hook_flush_caches().
File
- drupal-6.x/
update.php, line 21 - Administrative page for handling updates from one Drupal version to another.
Code
define('MAINTENANCE_MODE', 'update')