$view = new view; $view->name = 'Branches'; $view->description = 'Listings of branches'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'pifr_branch'; $view->is_cacheable = FALSE; $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( 'test_id' => array( 'label' => 'Test ID', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => '', 'prefix' => '', 'suffix' => '', 'exclude' => 1, 'id' => 'test_id', 'table' => 'pifr_test', 'field' => 'test_id', 'relationship' => 'none', ), 'client_identifier' => array( 'label' => 'Client Identifier', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 1, 'id' => 'client_identifier', 'table' => 'pifr_branch', 'field' => 'client_identifier', 'relationship' => 'none', ), 'title' => array( 'label' => 'Title', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 1, 'path' => 'pifr/test/[test_id]', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'pifr_test', 'field' => 'title', 'relationship' => 'none', ), 'nothing' => array( 'label' => 'Release Link', 'alter' => array( 'text' => 'Release link', 'make_link' => 1, 'path' => 'http://drupal.org/node/[client_identifier]', 'link_class' => '', 'alt' => 'Link to Drupal.org release node for this branch', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'nothing', 'table' => 'views', 'field' => 'nothing', 'relationship' => 'none', ), 'vcs_identifier' => array( 'label' => 'VCS Identifier', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'vcs_identifier', 'table' => 'pifr_branch', 'field' => 'vcs_identifier', 'relationship' => 'none', ), 'last_received' => array( 'label' => 'Last received', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'last_received', 'table' => 'pifr_test', 'field' => 'last_received', 'relationship' => 'none', ), 'last_requested' => array( 'label' => 'Last requested', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'last_requested', 'table' => 'pifr_test', 'field' => 'last_requested', 'relationship' => 'none', ), 'last_tested' => array( 'label' => 'Last tested', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'last_tested', 'table' => 'pifr_test', 'field' => 'last_tested', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'last_requested' => array( 'operator' => '>', 'value' => array( 'type' => 'date', 'value' => '2010-01-01', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'last_requested', 'table' => 'pifr_test', 'field' => 'last_requested', 'relationship' => 'none', ), 'title' => array( 'operator' => 'contains', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'title_op', 'identifier' => 'title', 'label' => 'Project Title', 'optional' => 1, 'remember' => 0, ), 'case' => 1, 'id' => 'title', 'table' => 'pifr_test', 'field' => 'title', 'relationship' => 'none', ), 'vcs_identifier' => array( 'operator' => 'contains', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'version', 'identifier' => 'vcs_identifier', 'label' => 'Branch', 'optional' => 1, 'remember' => 0, ), 'case' => 0, 'id' => 'vcs_identifier', 'table' => 'pifr_branch', 'field' => 'vcs_identifier', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'time', 'results_lifespan' => '3600', 'output_lifespan' => '3600', )); $handler->override_option('title', 'Branch Tests'); $handler->override_option('header_format', '1'); $handler->override_option('header_empty', 0); $handler->override_option('items_per_page', 200); $handler->override_option('use_pager', 'mini'); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'test_id' => 'test_id', 'client_identifier' => 'client_identifier', 'title' => 'title', 'nothing' => 'nothing', 'vcs_identifier' => 'vcs_identifier', 'last_received' => 'last_received', 'last_requested' => 'last_requested', 'last_tested' => 'last_tested', ), 'info' => array( 'test_id' => array( 'sortable' => 1, 'separator' => '', ), 'client_identifier' => array( 'separator' => '', ), 'title' => array( 'sortable' => 1, 'separator' => '', ), 'nothing' => array( 'separator' => '', ), 'vcs_identifier' => array( 'sortable' => 1, 'separator' => '', ), 'last_received' => array( 'sortable' => 1, 'separator' => '', ), 'last_requested' => array( 'sortable' => 1, 'separator' => '', ), 'last_tested' => array( 'sortable' => 1, 'separator' => '', ), ), 'default' => 'test_id', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'pifr/branches'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Branch Tests', 'description' => 'Links to contrib and core branch tests', 'weight' => '0', 'name' => 'primary-links', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', ));