function spaces_casetracker_views_default_views in Spaces 5.2
Same name and namespace in other branches
- 5 spaces_casetracker/spaces_casetracker.module \spaces_casetracker_views_default_views()
Implementation of hook_default_views
File
- spaces_casetracker/
spaces_casetracker.module, line 139
Code
function spaces_casetracker_views_default_views() {
$default_views = array(
'_spaces_casetracker_views_cases',
'_spaces_casetracker_views_cases_recent',
'_spaces_casetracker_views_cases_bystatus',
'_spaces_casetracker_views_cases_byuser',
'_spaces_casetracker_views_cases_byproject',
'_spaces_casetracker_views_cases_my',
'_spaces_casetracker_views_cases_myblock',
'_spaces_casetracker_views_cases_mycreated',
'_spaces_casetracker_views_cases_filter',
'_spaces_casetracker_views_cases_projects',
);
if (module_exists('spaces_user')) {
$default_views[] = '_spaces_casetracker_views_user_cases';
$default_views[] = '_spaces_casetracker_views_user_cases_created';
}
foreach ($default_views as $v) {
$view = call_user_func($v);
if (is_object($view) && $view->name) {
$views[$view->name] = $view;
}
}
return $views;
}