You are here

function _spaces_casetracker_views_base in Spaces 5.2

9 calls to _spaces_casetracker_views_base()
_spaces_casetracker_views_cases in spaces_casetracker/spaces_casetracker.module
_spaces_casetracker_views_cases_byproject in spaces_casetracker/spaces_casetracker.module
_spaces_casetracker_views_cases_bystatus in spaces_casetracker/spaces_casetracker.module
_spaces_casetracker_views_cases_byuser in spaces_casetracker/spaces_casetracker.module
_spaces_casetracker_views_cases_my in spaces_casetracker/spaces_casetracker.module

... See full list

File

spaces_casetracker/spaces_casetracker.module, line 453

Code

function _spaces_casetracker_views_base() {
  $view = new stdClass();
  $view->access = array();
  $view->view_args_php = '';
  $view->menu = FALSE;
  $view->page = TRUE;
  $view->page_empty = '<?php print _spaces_views_empty("casetracker"); ?>';
  $view->page_empty_format = '2';
  $view->page_type = 'table';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '50';
  $view->sort = array();
  $view->argument = array();
  $view->field = array(
    'project' => array(
      'tablename' => 'casetracker_case',
      'field' => 'pid',
      'label' => 'Project',
      'handler' => 'spaces_views_handler_crayon_name',
      'options' => 'casetracker',
      'sortable' => '1',
    ),
    'title' => array(
      'tablename' => 'node',
      'field' => 'title',
      'label' => 'Title',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
    'status' => array(
      'tablename' => 'casetracker_case',
      'field' => 'case_status_id',
      'label' => 'Status',
    ),
    'assigned' => array(
      'tablename' => 'casetracker_case',
      'field' => 'assign_to',
      'label' => 'Assigned',
      'sortable' => '1',
    ),
    'priority' => array(
      'tablename' => 'casetracker_case',
      'field' => 'case_priority_id',
      'label' => 'Priority',
      'sortable' => '1',
    ),
    'changed' => array(
      'tablename' => 'node',
      'field' => 'changed',
      'label' => 'Updated',
      'handler' => 'views_handler_field_date_small',
      'sortable' => '1',
      'defaultsort' => 'DESC',
    ),
  );
  $view->filter = array(
    'type' => array(
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array(
        0 => 'casetracker_basic_case',
      ),
    ),
    'status' => array(
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    'spaces' => array(
      'tablename' => 'spaces',
      'field' => 'type',
      'operator' => 'all',
      'options' => '',
      'value' => 'all',
    ),
  );
  $view->exposed_filter = array();
  $view->requires = array(
    node,
    casetracker_case,
  );
  return $view;
}