You are here

function mediafront_features_revert in MediaFront 7

Same name and namespace in other branches
  1. 6.2 includes/mediafront.features.inc \mediafront_features_revert()
  2. 6 includes/mediafront.features.inc \mediafront_features_revert()
  3. 7.2 includes/mediafront.features.inc \mediafront_features_revert()

Implementation of hook_features_revert().

File

includes/mediafront.features.inc, line 40

Code

function mediafront_features_revert($module) {
  if ($default_presets = features_get_default('mediafront', $module)) {
    foreach (array_keys($default_presets) as $default_preset) {
      mediafront_preset_delete($default_preset);
    }
  }
}