You are here

function mediafront_views_features_revert in MediaFront 7.2

Implementation of hook_features_revert().

File

includes/mediafront.features.inc, line 86

Code

function mediafront_views_features_revert($module) {
  if ($default_views = features_get_default('mediafront_views', $module)) {
    $options = mediafront_views_get_options();
    foreach (array_keys($default_views) as $default_view) {
      unset($options[$default_view]);
    }
    variable_set('mediafront_views_options', $options);
  }
}