| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: station_catalog.views_default.inc,v 1.4 2009/04/19 21:34:12 drewish Exp $ 3 4 5 /** 6 * Implementation of hook_default_view_views(). 7 */ 8 function station_catalog_views_default_views() { 9 $view = new view; 10 $view->name = 'station_catalog'; 11 $view->description = 'Station Catalog search view'; 12 $view->tag = 'station'; 13 $view->view_php = ''; 14 $view->base_table = 'node'; 15 $view->is_cacheable = FALSE; 16 $view->api_version = 2; 17 $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ 18 $handler = $view->new_display('default', 'Defaults', 'default'); 19 $handler->override_option('fields', array( 20 'number' => array( 21 'label' => 'Number', 22 'set_precision' => FALSE, 23 'precision' => 0, 24 'decimal' => '.', 25 'separator' => ',', 26 'prefix' => '', 27 'suffix' => '', 28 'exclude' => 0, 29 'id' => 'number', 30 'table' => 'station_catalog', 31 'field' => 'number', 32 'relationship' => 'none', 33 ), 34 'artist' => array( 35 'label' => 'Artist', 36 'exclude' => 0, 37 'id' => 'artist', 38 'table' => 'station_catalog', 39 'field' => 'artist', 40 'relationship' => 'none', 41 ), 42 'year' => array( 43 'label' => 'Year', 44 'exclude' => 0, 45 'set_precision' => FALSE, 46 'precision' => 0, 47 'decimal' => '.', 48 'separator' => ',', 49 'prefix' => '', 50 'suffix' => '', 51 'id' => 'year', 52 'table' => 'station_catalog', 53 'field' => 'year', 54 'relationship' => 'none', 55 'override' => array( 56 'button' => 'Override', 57 ), 58 ), 59 'label' => array( 60 'label' => 'Label', 61 'exclude' => 0, 62 'id' => 'label', 63 'table' => 'station_catalog', 64 'field' => 'label', 65 'relationship' => 'none', 66 ), 67 'edit_node' => array( 68 'label' => '', 69 'text' => 'Edit', 70 'exclude' => 0, 71 'id' => 'edit_node', 72 'table' => 'node', 73 'field' => 'edit_node', 74 'relationship' => 'none', 75 ), 76 )); 77 $handler->override_option('filters', array( 78 'type' => array( 79 'operator' => 'in', 80 'value' => array( 81 'station_album' => 'station_album', 82 ), 83 'group' => '0', 84 'exposed' => FALSE, 85 'expose' => array( 86 'operator' => FALSE, 87 'label' => '', 88 ), 89 'id' => 'type', 90 'table' => 'node', 91 'field' => 'type', 92 'relationship' => 'none', 93 ), 94 'status_extra' => array( 95 'operator' => '=', 96 'value' => '', 97 'group' => '0', 98 'exposed' => FALSE, 99 'expose' => array( 100 'operator' => FALSE, 101 'label' => '', 102 ), 103 'id' => 'status_extra', 104 'table' => 'node', 105 'field' => 'status_extra', 106 'relationship' => 'none', 107 ), 108 'artist' => array( 109 'operator' => '=', 110 'value' => '', 111 'group' => '0', 112 'exposed' => TRUE, 113 'expose' => array( 114 'use_operator' => 0, 115 'operator' => 'artist_op', 116 'identifier' => 'artist', 117 'label' => 'Artist', 118 'optional' => 1, 119 'remember' => 1, 120 ), 121 'case' => 0, 122 'id' => 'artist', 123 'table' => 'station_catalog', 124 'field' => 'artist', 125 'relationship' => 'none', 126 ), 127 'label' => array( 128 'operator' => '=', 129 'value' => '', 130 'group' => '0', 131 'exposed' => TRUE, 132 'expose' => array( 133 'use_operator' => 0, 134 'operator' => 'label_op', 135 'identifier' => 'label', 136 'label' => 'Label', 137 'optional' => 1, 138 'remember' => 1, 139 ), 140 'case' => 0, 141 'id' => 'label', 142 'table' => 'station_catalog', 143 'field' => 'label', 144 'relationship' => 'none', 145 ), 146 'year' => array( 147 'operator' => '=', 148 'value' => array( 149 'value' => '', 150 'min' => '', 151 'max' => '', 152 ), 153 'group' => '0', 154 'exposed' => TRUE, 155 'expose' => array( 156 'use_operator' => 0, 157 'operator' => 'year_op', 158 'identifier' => 'year', 159 'label' => 'Year', 160 'optional' => 1, 161 'remember' => 1, 162 ), 163 'id' => 'year', 164 'table' => 'station_catalog', 165 'field' => 'year', 166 'relationship' => 'none', 167 ), 168 )); 169 $handler->override_option('access', array( 170 'type' => 'perm', 171 'perm' => 'view station album content', 172 )); 173 $handler->override_option('title', 'Catalog'); 174 $handler->override_option('use_pager', '1'); 175 $handler->override_option('style_plugin', 'table'); 176 $handler->override_option('style_options', array( 177 'grouping' => '', 178 'override' => 1, 179 'sticky' => 0, 180 'order' => 'asc', 181 'columns' => array( 182 'number' => 'number', 183 'artist' => 'artist', 184 'label' => 'label', 185 'asin' => 'asin', 186 'year' => 'year', 187 'mb_release_id' => 'mb_release_id', 188 ), 189 'info' => array( 190 'number' => array( 191 'sortable' => 1, 192 'separator' => '', 193 ), 194 'artist' => array( 195 'sortable' => 1, 196 'separator' => '', 197 ), 198 'label' => array( 199 'sortable' => 1, 200 'separator' => '', 201 ), 202 'asin' => array( 203 'sortable' => 0, 204 'separator' => '', 205 ), 206 'year' => array( 207 'sortable' => 1, 208 'separator' => '', 209 ), 210 'mb_release_id' => array( 211 'sortable' => 0, 212 'separator' => '', 213 ), 214 ), 215 'default' => 'number', 216 )); 217 $handler = $view->new_display('page', 'Page', 'page_1'); 218 $handler->override_option('path', 'station/catalog/search'); 219 $handler->override_option('menu', array( 220 'type' => 'normal', 221 'title' => 'Catalog', 222 'weight' => '0', 223 'name' => 'navigation', 224 )); 225 $handler->override_option('tab_options', array( 226 'type' => 'none', 227 'title' => '', 228 'weight' => 0, 229 )); 230 $views[$view->name] = $view; 231 232 return $views; 233 }
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 |