You are here

function cloud_zoom_preset_features_revert in Cloud Zoom 6

Implementation of hook_features_revert().

File

./cloud_zoom.features.inc, line 67
cloud_zoom.features.inc Contains the implementions to enable Features Exportable settings

Code

function cloud_zoom_preset_features_revert($module) {

  // Get the settings for the Feature module
  $presets = module_invoke($module, 'cloud_zoom_preset_info');

  // For each preset, if there are any, delete any overriden settings
  if (!empty($presets)) {
    foreach ($presets as $preset) {
      db_query("DELETE FROM {cloud_zoom_presets} WHERE name = '%s'", $preset['name']);
    }
  }

  // Reset the cache
  cloud_zoom_get_settings(NULL, TRUE);
}