You are here

function fe_profile_features_revert in Features Extra 7

Implements hook_features_revert().

File

fe_profile/fe_profile.module, line 69
Main functions and hook implementations for FE Profile.

Code

function fe_profile_features_revert($module) {
  $defaults = features_get_default('fe_profile', $module);
  if (empty($defaults)) {
    return;
  }

  // Revert.
  foreach ($defaults as $object) {
    _fe_profile_save_field($object);
  }
}