You are here

function image_features_revert in Features 7

Same name and namespace in other branches
  1. 7.2 includes/features.image.inc \image_features_revert()

Implements hook_features_revert().

File

includes/features.image.inc, line 74

Code

function image_features_revert($module) {
  if ($default_styles = features_get_default('image', $module)) {
    foreach (array_keys($default_styles) as $default_style) {
      if ($style = image_style_load($default_style)) {
        if ($style['storage'] != IMAGE_STORAGE_DEFAULT) {
          image_default_style_revert($style);
        }
      }
    }
  }
}