You are here

function _spaces_casetracker_views_user_cases in Spaces 5.2

1 string reference to '_spaces_casetracker_views_user_cases'
spaces_casetracker_views_default_views in spaces_casetracker/spaces_casetracker.module
Implementation of hook_default_views

File

spaces_casetracker/spaces_casetracker.module, line 1226

Code

function _spaces_casetracker_views_user_cases() {
  $view = _spaces_casetracker_views_base();
  $view->name = 'spaces_user_cases';
  $view->description = 'A view of all cases by date.';
  $view->page = TRUE;
  $view->page_title = 'Cases';
  $view->url = 'user-cases';
  $view->sort = array(
    array(
      'tablename' => 'casetracker_case',
      'field' => 'case_status_id',
      'sortorder' => 'ASC',
      'options' => '',
    ),
  );
  $view->filter['assign'] = array(
    'tablename' => 'casetracker_case',
    'field' => 'assign_to',
    'operator' => 'AND',
    'options' => '',
    'value' => array(
      0 => '1',
    ),
  );
  unset($view->filter['spaces']);
  return $view;
}