You are here

function imagecache_features_revert in Features 6

Implementation of hook_features_revert().

File

includes/features.imagecache.inc, line 65

Code

function imagecache_features_revert($module) {
  if ($default_presets = features_get_default('imagecache', $module)) {
    foreach (array_keys($default_presets) as $default_preset) {
      $preset = imagecache_preset_by_name($default_preset);
      if ($preset) {
        imagecache_preset_delete($preset);
      }
    }
  }
}