| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: project_release_by_project.view.php,v 1.1 2009/11/25 16:53:46 dww Exp $ 3 4 /** 5 * @file 6 * List of all releases associated with a particular project. 7 */ 8 9 $view = new view; 10 $view->name = 'project_release_by_project'; 11 $view->description = 'List the project release nodes associated with a particular project.'; 12 $view->tag = 'Project release'; 13 $view->view_php = ''; 14 $view->base_table = 'node'; 15 $view->is_cacheable = FALSE; 16 $view->api_version = 2; 17 $view->disabled = FALSE; 18 $handler = $view->new_display('default', 'Defaults', 'default'); 19 $handler->override_option('fields', array( 20 'nid' => array( 21 'id' => 'nid', 22 'table' => 'node', 23 'field' => 'nid', 24 'label' => 'Nid', 25 'relationship' => 'none', 26 'link_to_node' => 0, 27 ), 28 'title' => array( 29 'id' => 'title', 30 'table' => 'node', 31 'field' => 'title', 32 'label' => 'Title', 33 'relationship' => 'none', 34 'link_to_node' => 0, 35 ), 36 'version' => array( 37 'id' => 'version', 38 'table' => 'project_release_nodes', 39 'field' => 'version', 40 'label' => 'Version string', 41 'relationship' => 'none', 42 'link_to_node' => 1, 43 ), 44 )); 45 $handler->override_option('sorts', array( 46 'created' => array( 47 'id' => 'created', 48 'table' => 'node', 49 'field' => 'created', 50 'order' => 'DESC', 51 'granularity' => 'minute', 52 'relationship' => 'none', 53 ), 54 )); 55 $handler->override_option('arguments', array( 56 'pid' => array( 57 'default_action' => 'not found', 58 'style_plugin' => 'default_summary', 59 'style_options' => array( 60 'count' => TRUE, 61 'override' => FALSE, 62 'items_per_page' => 25, 63 ), 64 'wildcard' => 'all', 65 'wildcard_substitution' => 'All', 66 'title' => 'Releases for %1', 67 'default_argument_type' => 'fixed', 68 'default_argument' => '', 69 'validate_type' => 'node', 70 'validate_fail' => 'empty', 71 'break_phrase' => 0, 72 'not' => 0, 73 'id' => 'pid', 74 'table' => 'project_release_nodes', 75 'field' => 'pid', 76 'relationship' => 'none', 77 'default_argument_fixed' => '', 78 'default_argument_php' => '', 79 'validate_argument_node_type' => array( 80 'project_project' => 'project_project', 81 ), 82 'validate_argument_type' => 'tid', 83 'validate_argument_php' => '', 84 'validate_argument_node_access' => 1, 85 'validate_argument_nid_type' => 'nid', 86 'default_options_div_prefix' => '', 87 'validate_argument_project_term_vocabulary' => array( 88 '1' => 0, 89 ), 90 ), 91 )); 92 $handler->override_option('filters', array( 93 'type' => array( 94 'id' => 'type', 95 'table' => 'node', 96 'field' => 'type', 97 'operator' => 'in', 98 'value' => array( 99 'project_release' => 'project_release', 100 ), 101 'group' => 0, 102 'exposed' => FALSE, 103 'expose' => array( 104 'operator' => FALSE, 105 'label' => '', 106 ), 107 'relationship' => 'none', 108 'expose_button' => array( 109 'button' => 'Expose', 110 ), 111 ), 112 'status_extra' => array( 113 'operator' => '=', 114 'value' => '', 115 'group' => '0', 116 'exposed' => FALSE, 117 'expose' => array( 118 'operator' => FALSE, 119 'label' => '', 120 ), 121 'id' => 'status_extra', 122 'table' => 'node', 123 'field' => 'status_extra', 124 'relationship' => 'none', 125 ), 126 'project_release_api_version' => array( 127 'operator' => 'or', 128 'value' => array(), 129 'group' => '0', 130 'exposed' => TRUE, 131 'expose' => array( 132 'use_operator' => 0, 133 'operator' => 'project_release_api_version_op', 134 'identifier' => 'api_version', 135 'label' => 'API version', 136 'optional' => 1, 137 'single' => 0, 138 'remember' => 0, 139 'reduce' => 0, 140 ), 141 'type' => 'select', 142 'reduce_duplicates' => TRUE, 143 'id' => 'project_release_api_version', 144 'table' => 'term_node', 145 'field' => 'project_release_api_version', 146 'hierarchy' => 0, 147 'relationship' => 'none', 148 ), 149 )); 150 $handler->override_option('access', array( 151 'type' => 'none', 152 'role' => array(), 153 'perm' => 'access projects', 154 )); 155 $handler->override_option('empty', 'There are no published releases for this project.'); 156 $handler->override_option('empty_format', '1'); 157 $handler->override_option('items_per_page', 20); 158 $handler->override_option('use_pager', '1'); 159 $handler->override_option('row_plugin', 'node'); 160 $handler->override_option('row_options', array( 161 'teaser' => 1, 162 'links' => 1, 163 )); 164 $handler = $view->new_display('page', 'Releases for *project*', 'page'); 165 $handler->override_option('path', 'node/%/release'); 166 $handler->override_option('menu', array( 167 'type' => 'none', 168 'title' => '', 169 'description' => '', 170 'weight' => '0', 171 'name' => 'navigation', 172 )); 173 $handler->override_option('tab_options', array( 174 'type' => 'none', 175 'title' => '', 176 'description' => '', 177 'weight' => 0, 178 )); 179 $handler = $view->new_display('feed', 'Feed', 'feed'); 180 $handler->override_option('style_plugin', 'rss'); 181 $handler->override_option('style_options', array( 182 'mission_description' => FALSE, 183 'description' => '', 184 )); 185 $handler->override_option('row_plugin', 'node_rss'); 186 $handler->override_option('row_options', array( 187 'item_length' => 'default', 188 )); 189 $handler->override_option('path', 'node/%/release/feed'); 190 $handler->override_option('menu', array( 191 'type' => 'none', 192 'title' => '', 193 'description' => '', 194 'weight' => 0, 195 'name' => 'navigation', 196 )); 197 $handler->override_option('tab_options', array( 198 'type' => 'none', 199 'title' => '', 200 'description' => '', 201 'weight' => 0, 202 )); 203 $handler->override_option('displays', array( 204 'page' => 'page', 205 'default' => 0, 206 )); 207 $handler->override_option('sitename_title', FALSE);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |