You are here

function spaces_features_revert in Spaces 6.2

Implementation of hook_spaces_features_revert().

File

./spaces.features.inc, line 55

Code

function spaces_features_revert($module = NULL) {
  if (module_hook($module, 'spaces_presets')) {
    module_load_include('inc', 'spaces', 'spaces_admin');
    $presets = module_invoke($module, 'spaces_presets');
    foreach ($presets as $id => $preset) {
      spaces_preset_delete($preset['type'], $id);
    }
  }
  return TRUE;
}