function views_features_revert in Features 6
Implementation of hook_features_revert().
File
- includes/
features.views.inc, line 255
Code
function views_features_revert($module) {
if ($default_views = features_get_default('views', $module)) {
foreach ($default_views as $default_view) {
if ($current_view = views_get_view($default_view->name)) {
$current_view
->delete(FALSE);
}
}
// Flush caches.
cache_clear_all();
menu_rebuild();
}
}