You are here

function styles_style_features_revert in Styles 7.2

Implements hook_features_revert().

File

includes/styles.features.inc, line 105

Code

function styles_style_features_revert($module) {
  if ($default_styles = features_get_default('styles_style', $module)) {
    foreach ($default_styles as $field_type => $styles) {
      foreach ($styles['styles'] as $style_name => $style) {
        if ($style = styles_style_load($field_type, $style_name)) {
          styles_style_delete($field_type, $style_name);
        }
      }
    }
  }
}