name = 'project_release_by_project'; $view->description = 'List the project release nodes associated with a particular project.'; $view->tag = 'Project release'; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'nid' => array( 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'label' => 'Nid', 'relationship' => 'none', 'link_to_node' => 0, ), 'title' => array( 'id' => 'title', 'table' => 'node', 'field' => 'title', 'label' => 'Title', 'relationship' => 'none', 'link_to_node' => 0, ), 'version' => array( 'id' => 'version', 'table' => 'project_release_nodes', 'field' => 'version', 'label' => 'Version string', 'relationship' => 'none', 'link_to_node' => 1, ), )); $handler->override_option('sorts', array( 'created' => array( 'id' => 'created', 'table' => 'node', 'field' => 'created', 'order' => 'DESC', 'granularity' => 'minute', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'pid' => array( 'default_action' => 'not found', 'style_plugin' => 'default_summary', 'style_options' => array( 'count' => TRUE, 'override' => FALSE, 'items_per_page' => 25, ), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Releases for %1', 'breadcrumb' => 'project', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'project_nid', 'validate_fail' => 'empty', 'break_phrase' => 0, 'not' => 0, 'id' => 'pid', 'table' => 'project_release_nodes', 'field' => 'pid', 'relationship' => 'none', 'default_argument_fixed' => '', 'default_argument_php' => '', ), )); $handler->override_option('filters', array( 'type' => array( 'id' => 'type', 'table' => 'node', 'field' => 'type', 'operator' => 'in', 'value' => array( 'project_release' => 'project_release', ), 'group' => 0, 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'relationship' => 'none', 'expose_button' => array( 'button' => 'Expose', ), ), 'status_extra' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status_extra', 'table' => 'node', 'field' => 'status_extra', 'relationship' => 'none', ), 'project_release_api_version' => array( 'operator' => 'or', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'project_release_api_version_op', 'identifier' => 'api_version', 'label' => 'API version', 'optional' => 1, 'single' => 0, 'remember' => 0, 'reduce' => 0, ), 'type' => 'select', 'reduce_duplicates' => TRUE, 'id' => 'project_release_api_version', 'table' => 'term_node', 'field' => 'project_release_api_version', 'hierarchy' => 0, 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', 'role' => array(), 'perm' => 'access projects', )); $handler->override_option('empty', 'There are no published releases for this project.'); $handler->override_option('empty_format', '1'); $handler->override_option('items_per_page', 20); $handler->override_option('use_pager', '1'); $handler->override_option('row_plugin', 'node'); $handler->override_option('row_options', array( 'teaser' => 1, 'links' => 1, )); $handler = $view->new_display('page', 'Releases for *project*', 'page'); $handler->override_option('path', 'node/%/release'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('feed', 'Feed', 'feed'); $handler->override_option('style_plugin', 'rss'); $handler->override_option('style_options', array( 'mission_description' => FALSE, 'description' => '', )); $handler->override_option('row_plugin', 'node_rss'); $handler->override_option('row_options', array( 'item_length' => 'default', )); $handler->override_option('path', 'node/%/release/feed'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler->override_option('displays', array( 'page' => 'page', 'default' => 0, )); $handler->override_option('sitename_title', FALSE);