You are here

function styleswitcher_update_7202 in Style Switcher 7.2

Remove dependency on blank CSS file.

File

./styleswitcher.install, line 84
Installation tasks.

Code

function styleswitcher_update_7202() {
  $styles = variable_get('styleswitcher_styles');
  if (isset($styles)) {
    $blank_css_path = drupal_get_path('module', 'styleswitcher') . '/styleswitcher.css';
    foreach ($styles as $name => $style) {
      if ($style['path'] == $blank_css_path) {
        $styles[$name]['path'] = NULL;
        break;
      }
    }
    variable_set('styleswitcher_styles', $styles);
  }
}