function gathercontent_update_7308 in GatherContent 7.3
Create custom GatherContent formats and revert views.
File
- ./
gathercontent.install, line 390
Code
function gathercontent_update_7308() {
_gathercontent_create_text_formats();
$views = views_get_all_views();
// Find all overridden views.
foreach ($views as $view) {
if ($view->disabled) {
continue;
}
if ($view->type == t('Overridden')) {
// Revert the view.
$view
->delete();
// Clear its cache.
ctools_include('object-cache');
ctools_object_cache_clear('view', $view->name);
}
}
}