diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-14 17:00:14 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-14 17:00:14 +0000 |
commit | 41d7e347b3722eb17d2c3167994dcfe13985fb47 (patch) | |
tree | 81757db1dda3dc59dd30f045e18815fa991e84cc /modules/system/system.install | |
parent | 7b52f8d52ed983be0d33b1560950c498c5ca62f6 (diff) | |
download | brdo-41d7e347b3722eb17d2c3167994dcfe13985fb47.tar.gz brdo-41d7e347b3722eb17d2c3167994dcfe13985fb47.tar.bz2 |
#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
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -2728,6 +2728,20 @@ function system_update_6041() { } /** + * 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. */ |