/[drupal]/contributions/modules/station/schedule/views/station_schedule.views_default.inc
ViewVC logotype

Diff of /contributions/modules/station/schedule/views/station_schedule.views_default.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10, Tue Sep 22 21:56:21 2009 UTC revision 1.11, Tue Sep 22 22:32:35 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3  // $Id: station_schedule.views_default.inc,v 1.9 2009/09/21 21:36:20 drewish Exp $  // $Id: station_schedule.views_default.inc,v 1.10 2009/09/22 21:56:21 drewish Exp $
4  /**  /**
5   * Implementation of hook_views_default_views().   * Implementation of hook_views_default_views().
6   */   */
7  function station_schedule_views_default_views() {  function station_schedule_views_default_views() {
8    /*    /*
9       * View 'station_djs_programs'
10       */
11      $view = new view;
12      $view->name = 'station_djs_programs';
13      $view->description = 'Lising of programs by DJ.';
14      $view->tag = 'station_schedule';
15      $view->view_php = '';
16      $view->base_table = 'node';
17      $view->is_cacheable = FALSE;
18      $view->api_version = 2;
19      $view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
20      $handler = $view->new_display('default', 'Defaults', 'default');
21      $handler->override_option('fields', array(
22        'title' => array(
23          'label' => '',
24          'alter' => array(
25            'alter_text' => 0,
26            'text' => '',
27            'make_link' => 0,
28            'path' => '',
29            'link_class' => '',
30            'alt' => '',
31            'prefix' => '',
32            'suffix' => '',
33            'help' => '',
34            'trim' => 0,
35            'max_length' => '',
36            'word_boundary' => 1,
37            'ellipsis' => 1,
38            'strip_tags' => 0,
39            'html' => 0,
40          ),
41          'link_to_node' => 1,
42          'exclude' => 0,
43          'id' => 'title',
44          'table' => 'node',
45          'field' => 'title',
46          'relationship' => 'none',
47        ),
48      ));
49      $handler->override_option('sorts', array(
50        'title' => array(
51          'order' => 'ASC',
52          'id' => 'title',
53          'table' => 'node',
54          'field' => 'title',
55          'relationship' => 'none',
56        ),
57      ));
58      $handler->override_option('arguments', array(
59        'field_station_program_dj_uid' => array(
60          'default_action' => 'summary asc',
61          'style_plugin' => 'default_summary',
62          'style_options' => array(
63            'count' => 0,
64            'override' => 0,
65            'items_per_page' => '25',
66          ),
67          'wildcard' => 'all',
68          'wildcard_substitution' => 'All',
69          'title' => 'Programs with %1',
70          'breadcrumb' => '',
71          'default_argument_type' => 'user',
72          'default_argument' => '',
73          'validate_type' => 'user',
74          'validate_fail' => 'not found',
75          'break_phrase' => 0,
76          'not' => 0,
77          'id' => 'field_station_program_dj_uid',
78          'table' => 'node_data_field_station_program_dj',
79          'field' => 'field_station_program_dj_uid',
80          'validate_user_argument_type' => 'either',
81          'validate_user_roles' => array(
82            '2' => 0,
83          ),
84          'relationship' => 'none',
85          'default_options_div_prefix' => '',
86          'default_argument_user' => 0,
87          'default_argument_fixed' => '',
88          'default_argument_php' => '',
89          'validate_argument_node_type' => array(
90            'station_album' => 0,
91            'station_playlist' => 0,
92            'station_program' => 0,
93            'station_schedule' => 0,
94            'page' => 0,
95            'story' => 0,
96          ),
97          'validate_argument_node_access' => 0,
98          'validate_argument_nid_type' => 'nid',
99          'validate_argument_vocabulary' => array(),
100          'validate_argument_type' => 'tid',
101          'validate_argument_transform' => 0,
102          'validate_user_restrict_roles' => 0,
103          'validate_argument_php' => '',
104          'override' => array(
105            'button' => 'Override',
106          ),
107        ),
108      ));
109      $handler->override_option('filters', array(
110        'status_extra' => array(
111          'operator' => '=',
112          'value' => '',
113          'group' => '0',
114          'exposed' => FALSE,
115          'expose' => array(
116            'operator' => FALSE,
117            'label' => '',
118          ),
119          'id' => 'status_extra',
120          'table' => 'node',
121          'field' => 'status_extra',
122          'relationship' => 'none',
123        ),
124      ));
125      $handler->override_option('access', array(
126        'type' => 'perm',
127        'perm' => 'view station program content',
128      ));
129      $handler->override_option('cache', array(
130        'type' => 'none',
131      ));
132      $handler->override_option('title', 'Programs by DJ');
133      $handler->override_option('style_options', NULL);
134      $handler->override_option('row_plugin', 'node');
135      $handler->override_option('row_options', array(
136        'relationship' => 'none',
137        'build_mode' => 'teaser',
138        'links' => 1,
139        'comments' => 0,
140      ));
141      $handler = $view->new_display('page', 'Page', 'page_1');
142      $handler->override_option('path', 'station/dj');
143      $handler->override_option('menu', array(
144        'type' => 'normal',
145        'title' => 'DJ',
146        'description' => '',
147        'weight' => '0',
148        'name' => 'navigation',
149      ));
150      $handler->override_option('tab_options', array(
151        'type' => 'none',
152        'title' => '',
153        'description' => '',
154        'weight' => 0,
155      ));
156      $views[$view->name] = $view;
157    
158      /*
159     * View 'station_schedule_day'     * View 'station_schedule_day'
160     */     */
161    $view = new view;    $view = new view;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.2