| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: project_overview.view.php,v 1.1 2009/11/25 16:44:51 dww Exp $ 3 4 /** 5 * @file 6 * A view for browsing projects on the site. 7 */ 8 9 $view = new view; 10 $view->name = 'project_overview'; 11 $view->description = 'A view for browsing projects (currently broken).'; 12 $view->tag = 'project'; 13 $view->view_php = ''; 14 $view->base_table = 'node'; 15 $view->is_cacheable = FALSE; 16 $view->api_version = 2; 17 $view->disabled = TRUE; 18 $handler = $view->new_display('default', 'Defaults', 'default'); 19 20 $fields = array( 21 'title' => array( 22 'label' => '', 23 'link_to_node' => 1, 24 'exclude' => 0, 25 'id' => 'title', 26 'table' => 'node', 27 'field' => 'title', 28 'relationship' => 'none', 29 ), 30 'changed' => array( 31 'label' => 'Last changed', 32 'date_format' => 'time ago', 33 'custom_date_format' => '2', 34 'exclude' => 0, 35 'id' => 'changed', 36 'table' => 'node', 37 'field' => 'changed', 38 'relationship' => 'none', 39 ), 40 'teaser' => array( 41 'label' => '', 42 'exclude' => 0, 43 'id' => 'teaser', 44 'table' => 'node_revisions', 45 'field' => 'teaser', 46 'relationship' => 'none', 47 ), 48 'project_type_tid' => array( 49 'label' => '', 50 'type' => 'separator', 51 'separator' => ' ', 52 'empty' => '', 53 'link_to_taxonomy' => 1, 54 'limit' => 0, 55 'vids' => array( 56 '1' => 1, 57 ), 58 'exclude_top_level_terms' => 1, 59 'exclude' => 0, 60 'id' => 'project_type_tid', 61 'table' => 'term_node', 62 'field' => 'project_type_tid', 63 'relationship' => 'none', 64 ), 65 ); 66 67 $sorts = array( 68 'sticky' => array( 69 'order' => 'DESC', 70 'id' => 'sticky', 71 'table' => 'node', 72 'field' => 'sticky', 73 'relationship' => 'none', 74 ), 75 'title' => array( 76 'order' => 'ASC', 77 'id' => 'title', 78 'table' => 'node', 79 'field' => 'title', 80 'relationship' => 'none', 81 ), 82 'changed' => array( 83 'order' => 'DESC', 84 'granularity' => 'day', 85 'id' => 'changed', 86 'table' => 'node', 87 'field' => 'changed', 88 ), 89 'title_1' => array( 90 'order' => 'ASC', 91 'id' => 'title_1', 92 'table' => 'node', 93 'field' => 'title', 94 'relationship' => 'none', 95 ), 96 ); 97 98 $arguments = array( 99 'tid' => array( 100 'default_action' => 'not found', 101 'style_plugin' => 'default_summary', 102 'style_options' => array(), 103 'wildcard' => 'all', 104 'wildcard_substitution' => 'All', 105 'title' => '%1', 106 'default_argument_type' => 'fixed', 107 'default_argument' => '', 108 'validate_type' => 'project_type_term', 109 'validate_fail' => 'not found', 110 'break_phrase' => 0, 111 'add_table' => 0, 112 'require_value' => 0, 113 'reduce_duplicates' => 1, 114 'set_breadcrumb' => 0, 115 'id' => 'tid', 116 'table' => 'term_node', 117 'field' => 'tid', 118 'relationship' => 'none', 119 'default_options_div_prefix' => '', 120 'default_argument_user' => 0, 121 'default_argument_fixed' => '', 122 'default_argument_php' => '', 123 'validate_argument_node_type' => array(), 124 'validate_argument_node_access' => 0, 125 'validate_argument_nid_type' => 'nid', 126 'validate_argument_vocabulary' => array(), 127 'validate_argument_type' => 'tid', 128 'validate_argument_project_term_vocabulary' => array( 129 '1' => 1, 130 ), 131 'validate_argument_project_term_argument_type' => 'convert', 132 'validate_argument_project_term_argument_action_top_without' => 'pass', 133 'validate_argument_project_term_argument_action_top_with' => 'pass', 134 'validate_argument_project_term_argument_action_child' => 'pass', 135 'validate_argument_php' => '', 136 'override' => array( 137 'button' => 'Override', 138 ), 139 ), 140 ); 141 142 $filters = array( 143 'type' => array( 144 'operator' => 'in', 145 'value' => array( 146 'project_project' => 'project_project', 147 ), 148 'group' => '0', 149 'exposed' => FALSE, 150 'expose' => array( 151 'operator' => FALSE, 152 'label' => '', 153 ), 154 'id' => 'type', 155 'table' => 'node', 156 'field' => 'type', 157 'relationship' => 'none', 158 ), 159 'status' => array( 160 'operator' => '=', 161 'value' => 1, 162 'group' => '0', 163 'exposed' => FALSE, 164 'expose' => array( 165 'operator' => FALSE, 166 'label' => '', 167 ), 168 'id' => 'status', 169 'table' => 'node', 170 'field' => 'status', 171 'relationship' => 'none', 172 ), 173 'keys' => array( 174 'operator' => 'optional', 175 'value' => '', 176 'group' => '0', 177 'exposed' => TRUE, 178 'expose' => array( 179 'use_operator' => 0, 180 'operator' => 'keys_op', 181 'identifier' => 'keywords', 182 'label' => 'Keywords:', 183 'optional' => 1, 184 'remember' => 0, 185 ), 186 'id' => 'keys', 187 'table' => 'search_index', 188 'field' => 'keys', 189 'override' => array( 190 'button' => 'Override', 191 ), 192 'relationship' => 'none', 193 ), 194 'project_type_tid' => array( 195 'operator' => 'or', 196 'value' => '', 197 'group' => '0', 198 'exposed' => TRUE, 199 'expose' => array( 200 'use_operator' => 0, 201 'operator' => 'project_type_tid_op', 202 'identifier' => 'type', 203 'label' => 'Category:', 204 'optional' => 1, 205 'single' => 1, 206 'remember' => 0, 207 'reduce' => 0, 208 ), 209 'type' => 'select', 210 'vid' => '1', 211 'associated_argument' => '0', 212 'remove_if_no_options' => 1, 213 'argument_position' => '0', 214 'id' => 'project_type_tid', 215 'table' => 'term_node', 216 'field' => 'project_type_tid', 217 'relationship' => 'none', 218 'reduce_duplicates' => 1, 219 ), 220 'project_sort_method' => array( 221 'value' => 'sticky', 222 'group' => '0', 223 'exposed' => TRUE, 224 'expose' => array( 225 'operator' => '', 226 'label' => 'Sort by:', 227 'identifier' => 'sort_by', 228 'optional' => 0, 229 'single' => 1, 230 'remember' => 0, 231 ), 232 'sort_methods' => array( 233 'changed' => array( 234 'enabled' => 1, 235 'weight' => '-23', 236 'display_name' => 'Date', 237 ), 238 'title_1' => array( 239 'enabled' => 0, 240 'weight' => '-25', 241 'display_name' => 'title_1', 242 ), 243 'sticky' => array( 244 'enabled' => 0, 245 'weight' => '-24', 246 'display_name' => 'sticky', 247 ), 248 'title' => array( 249 'enabled' => 1, 250 'weight' => '-22', 251 'display_name' => 'Name', 252 ), 253 ), 254 'id' => 'project_sort_method', 255 'table' => 'views', 256 'field' => 'project_sort_method', 257 'relationship' => 'none', 258 ), 259 ); 260 261 $handler->override_option('fields', $fields); 262 $handler->override_option('sorts', $sorts); 263 $handler->override_option('arguments', $arguments); 264 $handler->override_option('filters', $filters); 265 $handler->override_option('access', array( 266 'type' => 'perm', 267 'role' => array(), 268 'perm' => 'browse project listings', 269 )); 270 $handler->override_option('empty', 'No results were found.'); 271 $handler->override_option('empty_format', '1'); 272 $handler->override_option('items_per_page', 30); 273 $handler->override_option('use_pager', '1'); 274 $handler->override_option('distinct', 1); 275 $handler->override_option('style_plugin', 'project_list'); 276 $handler->override_option('row_plugin', 'project_fields'); 277 $handler->override_option('row_options', array( 278 'inline' => array(), 279 'separator' => '', 280 )); 281 $handler = $view->new_display('page', 'Page', 'page_1'); 282 $handler->override_option('path', 'project/%'); 283 $handler->override_option('menu', array( 284 'type' => 'none', 285 'title' => 'Yuki', 286 'weight' => '0', 287 )); 288 $handler->override_option('tab_options', array( 289 'type' => 'none', 290 'title' => '', 291 'weight' => 0, 292 )); 293 $handler = $view->new_display('feed', 'Feed', 'feed_1'); 294 $handler->override_option('style_plugin', 'rss'); 295 $handler->override_option('style_options', array( 296 'mission_description' => FALSE, 297 'description' => '', 298 )); 299 $handler->override_option('row_plugin', 'node_rss'); 300 $handler->override_option('row_options', array( 301 'item_length' => 'default', 302 )); 303 $handler->override_option('path', 'project/%/feed'); 304 $handler->override_option('menu', array( 305 'type' => 'none', 306 'title' => '', 307 'weight' => 0, 308 )); 309 $handler->override_option('tab_options', array( 310 'type' => 'none', 311 'title' => '', 312 'weight' => 0, 313 )); 314 $handler->override_option('displays', array( 315 'default' => 'default', 316 'page_1' => 'page_1', 317 )); 318 $handler->override_option('sitename_title', FALSE); 319
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 |