function _spaces_casetracker_views_user_cases_created in Spaces 5.2
1 string reference to '_spaces_casetracker_views_user_cases_created'
- spaces_casetracker_views_default_views in spaces_casetracker/
spaces_casetracker.module - Implementation of hook_default_views
File
- spaces_casetracker/
spaces_casetracker.module, line 1259
Code
function _spaces_casetracker_views_user_cases_created() {
$view = _spaces_casetracker_views_base();
$view->name = 'spaces_user_cases_created';
$view->description = 'A view of all cases by date.';
$view->view_args_php = '
$space = spaces_get_space();
if ($space && $space->type == \'user\') {
$view->page_title = t(\'Cases created by !user\', array(\'!user\' => $space->title));
}
';
$view->page = TRUE;
$view->page_title = 'Cases created by';
$view->url = 'user-cases/created';
$view->sort = array(
array(
'tablename' => 'casetracker_case',
'field' => 'case_status_id',
'sortorder' => 'ASC',
'options' => '',
),
);
$view->requires = array(
casetracker_case,
node,
spaces,
);
return $view;
}