You are here

function biblio_views_default_views in Bibliography Module 5

Same name and namespace in other branches
  1. 6.2 views/biblio.views_default.inc \biblio_views_default_views()
  2. 6 biblio.views_default.inc \biblio_views_default_views()
  3. 7.3 includes/views/biblio.views_default.inc \biblio_views_default_views()
  4. 7 views/biblio.views_default.inc \biblio_views_default_views()
  5. 7.2 views/biblio.views_default.inc \biblio_views_default_views()

File

./biblio.module, line 3397

Code

function biblio_views_default_views() {
  $view = new stdClass();
  $view->name = 'biblioview';
  $view->description = 'Shows a summary view of biblio entries';
  $view->access = array();
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = 'Biblio';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'table';
  $view->url = 'biblioview';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '10';
  $view->sort = array();
  $view->argument = array(
    array(
      'type' => 'nodetype',
      'argdefault' => '2',
      'title' => '',
      'options' => '',
      'wildcard' => 'biblio',
      'wildcard_substitution' => '',
    ),
  );
  $view->field = array(
    array(
      'tablename' => 'biblio',
      'field' => 'biblio_year',
      'label' => 'Year',
      'sortable' => '1',
      'defaultsort' => 'DESC',
    ),
    array(
      'tablename' => 'biblio',
      'field' => 'biblio_authors',
      'sortable' => '1',
      'label' => 'Author',
    ),
    array(
      'tablename' => 'node',
      'field' => 'title',
      'label' => 'Title',
      'handler' => 'views_handler_field_nodelink',
      'sortable' => '1',
      'options' => 'link',
    ),
  );
  $view->filter = array();
  $view->exposed_filter = array();
  $view->requires = array(
    biblio,
    node,
  );
  $views[$view->name] = $view;
  return $views;
}