$view = new view; $view->name = 'project_release_download_table'; $view->description = 'Show the recommended or latest release nodes for each branch of a project'; $view->tag = 'project_release'; $view->view_php = ''; $view->base_table = 'node'; $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('relationships', array( 'supported_releases_rel' => array( 'label' => 'supported versions', 'required' => 1, 'id' => 'supported_releases_rel', 'table' => 'project_release_nodes', 'field' => 'supported_releases_rel', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'version' => array( 'label' => 'Official releases', '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'exclude' => 0, 'id' => 'version', 'table' => 'project_release_nodes', 'field' => 'version', 'relationship' => 'none', ), 'changed' => array( 'label' => 'Date', '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'custom', 'custom_date_format' => 'Y-M-d', 'exclude' => 0, 'id' => 'changed', 'table' => 'node', 'field' => 'changed', 'relationship' => 'none', ), 'files' => array( 'label' => 'Downloads', 'alter' => array( 'alter_text' => 1, 'text' => '[files-ext] ([files-size])', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'separator', 'separator' => ' | ', 'link_to_file' => 1, 'exclude' => 0, 'id' => 'files', 'table' => 'project_release_nodes', 'field' => 'files', 'relationship' => 'none', ), 'view_node' => array( 'label' => 'Links', '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => 'Release notes', 'exclude' => 0, 'id' => 'view_node', 'table' => 'node', 'field' => 'view_node', 'relationship' => 'none', ), 'edit_comment' => array( 'label' => 'Edit', '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => 'Edit', 'exclude' => 0, 'id' => 'edit_comment', 'table' => 'comments', 'field' => 'edit_comment', 'relationship' => 'none', ), 'recommended' => array( 'label' => 'Recommended?', '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'yes-no', 'not' => 0, 'exclude' => 0, 'id' => 'recommended', 'table' => 'project_release_supported_versions', 'field' => 'recommended', 'relationship' => 'supported_releases_rel', ), )); $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', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'node', 'validate_fail' => 'empty', 'break_phrase' => 0, 'not' => 0, 'id' => 'pid', 'table' => 'project_release_nodes', 'field' => 'pid', 'relationship' => 'none', 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'project_project' => 'project_project', ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', 'validate_argument_node_access' => 1, 'validate_argument_nid_type' => 'nid', 'default_options_div_prefix' => '', 'validate_argument_project_term_vocabulary' => array( '1' => 0, ), ), )); $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', ), 'supported' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'supported', 'table' => 'project_release_supported_versions', 'field' => 'supported', 'relationship' => 'supported_releases_rel', ), 'recommended_release' => array( 'id' => 'recommended_release', 'table' => 'project_release_supported_versions', 'field' => 'recommended_release', 'relationship' => 'supported_releases_rel', ), )); $handler->override_option('access', array( 'type' => 'none', 'role' => array(), 'perm' => 'access projects', )); $handler->override_option('cache', array( 'type' => 'none', )); $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('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'desc', 'columns' => array( 'version' => 'version', 'changed' => 'changed', 'files' => 'files', 'view_node' => 'view_node', 'edit_comment' => 'view_node', 'recommended' => 'recommended', ), 'info' => array( 'version' => array( 'sortable' => 0, 'separator' => '', ), 'changed' => array( 'sortable' => 0, 'separator' => '', ), 'files' => array( 'separator' => '', ), 'view_node' => array( 'separator' => '| ', ), 'edit_comment' => array( 'separator' => '', ), 'recommended' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => 'version', )); $handler->override_option('row_options', array( 'inline' => array(), 'separator' => '', )); $handler = $view->new_display('page', 'Releases for *project*', 'page'); $handler->override_option('path', 'node/%/download-table'); $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);