From 41d7e347b3722eb17d2c3167994dcfe13985fb47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 14 Dec 2007 17:00:14 +0000 Subject: #193604 by hass and dvessel: fix color module to be able to use arbitrary styles, not just style.css, fixing Minnelli coloring and RTL CSS file coloring --- modules/system/system.install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index c25268c61..218ab61d0 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -2727,6 +2727,20 @@ function system_update_6041() { return $ret; } +/** + * Upgrade recolored theme stylesheets to new array structure. + */ +function system_update_6042() { + foreach (list_themes() as $theme) { + $stylesheet = variable_get('color_'. $theme->name .'_stylesheet', NULL); + if (!empty($stylesheet)) { + variable_set('color_'. $theme->name .'_stylesheets', array($stylesheet)); + variable_del('color_'. $theme->name .'_stylesheet'); + } + } + return array(); +} + /** * @} End of "defgroup updates-5.x-to-6.x" * The next series of updates should start at 7000. -- cgit v1.2.3