$view = new view; $view->name = 'newspaperhistory'; $view->description = 'A list of all newspaper history content, by letter.'; $view->tag = 'default'; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = '0'; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'title' => array( 'label' => '', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'teaser' => array( 'label' => '', 'exclude' => 0, 'id' => 'teaser', 'table' => 'node_revisions', 'field' => 'teaser', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'title' => array( 'order' => 'ASC', 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'title' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 1, 'limit' => '1', 'case' => 'upper', 'path_case' => 'lower', 'transform_dash' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', 'default_argument_user' => 0, 'default_argument_fixed' => 'a', 'default_argument_php' => '', 'validate_argument_vocabulary' => array(), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'newspaper' => 'newspaper', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', 'role' => array(), 'perm' => '', )); $handler->override_option('title', 'Newspaper history'); $handler->override_option('header_format', '3'); $handler->override_option('use_ajax', '1'); $handler->override_option('items_per_page', 36); $handler->override_option('use_pager', '1'); $handler->override_option('use_more', 1); $handler = $view->new_display('page', 'Page', 'page'); $handler->override_option('path', 'newspaper'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Newspaper history', 'weight' => '0', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'weight' => 0, )); $handler = $view->new_display('attachment', 'Attachment', 'attachment'); $handler->override_option('arguments', array( 'title' => array( 'default_action' => 'summary asc', 'style_plugin' => 'unformatted_summary', 'style_options' => array( 'count' => 1, 'override' => 0, 'items_per_page' => '25', 'inline' => 1, 'separator' => ' | ', ), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 1, 'limit' => '1', 'case' => 'upper', 'path_case' => 'lower', 'transform_dash' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', 'default_argument_user' => 0, 'default_argument_fixed' => 'a', 'validate_argument_vocabulary' => array(), 'validate_argument_php' => '', ), )); $handler->override_option('inherit_arguments', 0); $handler->override_option('displays', array( 'default' => 'default', 'page' => 'page', )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('block_description', 'Newspaper history list');