constant MAINTENANCE_MODE

Same name in this branch

Global flag indicating that update.php is being run.

When this flag is set, various operations do not take place, such as invoking hook_init() and hook_exit(), css/js preprocessing, and translation.

This constant is defined using define() instead of const so that PHP versions older than 5.3 can display the proper PHP requirements instead of causing a fatal error.

7 uses of MAINTENANCE_MODE
drupal_exit in drupal/core/includes/common.inc
Performs end-of-request tasks.
error_displayable in drupal/core/includes/errors.inc
Determines whether an error should be displayed.
menu_get_custom_theme in drupal/core/includes/menu.inc
Gets the custom theme for the current page, if there is one.
theme_status_report in drupal/core/modules/system/system.admin.inc
Returns HTML for the status report.
update_cache_flush in drupal/core/modules/update/update.module
Implements hook_cache_flush().

... See full list

File

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

Code

define('MAINTENANCE_MODE', 'update');