From 34573dde97d13dc0e4e2fc15f73236671af7c1a4 Mon Sep 17 00:00:00 2001 From: Dries <dries@buytaert.net> Date: Tue, 7 Aug 2012 15:26:00 -0400 Subject: [PATCH] - Patch #1496458 by swentel, pcambra, n3or, sun, kbasarab, marcingy, no_commit_credit: convert maintenance mode settings to configuration system. --- core/modules/system/system.install | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 17f561efcc57..0d4a2243d46b 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -2034,6 +2034,18 @@ function system_update_8015() { } } +/** + * Move the system maintenance settings from variable to config. + * + * @ingroup config_upgrade + */ +function system_update_8015() { + update_variables_to_config('system.maintenance', array( + 'maintenance_mode' => 'enabled', + 'maintenance_mode_message' => 'message', + )); +} + /** * @} End of "defgroup updates-7.x-to-8.x". * The next series of updates should start at 9000. -- GitLab