1 system.install | system_update_1014() |
Move the system maintenance settings from variable to config.
Related topics
File
- core/
modules/ system/ system.install, line 1975 - Install, update and uninstall functions for the system module.
Code
function system_update_1014() {
// Migrate variables to state and config.
state_set('maintenance_mode', update_variable_get('maintenance_mode', TRUE));
config_set('system.core', 'maintenance_mode_message', update_variable_get('maintenance_mode_message', 'message'));
// Delete variables.
update_variable_del('maintenance_mode');
update_variable_del('maintenance_mode_message');
}