You are here

function imageapi_optimize_features_revert in Image Optimize (or ImageAPI Optimize) 7.2

Implements hook_features_revert().

File

./imageapi_optimize.features.inc, line 79
Features integration for the ImageAPI Optimize module.

Code

function imageapi_optimize_features_revert($module) {
  if ($default_pipelines = features_get_default('imageapi_optimize', $module)) {
    foreach (array_keys($default_pipelines) as $default_pipeline) {
      if ($pipeline = imageapi_optimize_pipeline_load($default_pipeline)) {
        if ($pipeline['storage'] != IMAGEAPI_OPTIMIZE_STORAGE_DEFAULT) {
          imageapi_optimize_default_pipeline_revert($pipeline);
        }
      }
    }
  }
}