You are here

function _spaces_casetracker_views_cases_bystatus in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces_casetracker/spaces_casetracker.module \_spaces_casetracker_views_cases_bystatus()
1 string reference to '_spaces_casetracker_views_cases_bystatus'
spaces_casetracker_views_default_views in spaces_casetracker/spaces_casetracker.module
Implementation of hook_default_views

File

spaces_casetracker/spaces_casetracker.module, line 634

Code

function _spaces_casetracker_views_cases_bystatus() {
  $view = _spaces_casetracker_views_base();
  $view->name = 'spaces_cases_bystatus';
  $view->description = t('Filter cases by status.');
  $view->menu = TRUE;
  $view->menu_title = t('Cases by status');
  $view->page = TRUE;
  $view->page_title = t('Cases by status');
  $view->url = 'cases/by-status';
  $view->sort = array(
    array(
      'tablename' => 'casetracker_case',
      'field' => 'case_status_id',
      'sortorder' => 'ASC',
      'options' => 'normal',
    ),
  );
  $view->filter['status_id'] = array(
    'tablename' => 'casetracker_case',
    'field' => 'case_status_id',
    'operator' => 'OR',
    'options' => '',
    'value' => array(
      0 => '6',
    ),
  );
  $view->exposed_filter = array(
    array(
      'tablename' => 'casetracker_case',
      'field' => 'case_status_id',
      'label' => t('Status'),
      'optional' => '0',
      'is_default' => '1',
      'operator' => '1',
      'single' => '1',
    ),
  );
  return $view;
}