system_update_6042
modules/system/system.install, строка 2329
- Версии
- 6
system_update_6042()
Upgrade recolored theme stylesheets to new array structure.
Связанные темы
Код
<?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();
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии