$code); } /** * Implementation of hook_spaces_features_revert(). */ 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; }