system_update_6042
Definition
system_update_6042()
modules/system/system.install, line 2311
Description
Upgrade recolored theme stylesheets to new array structure.
Code
<?php
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();
}
?> 