/[drupal]/contributions/modules/comment_alter_taxonomy/comment_alter_taxonomy.views_default.inc
ViewVC logotype

Diff of /contributions/modules/comment_alter_taxonomy/comment_alter_taxonomy.views_default.inc

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

revision 1.1, Mon Jan 26 20:15:33 2009 UTC revision 1.2, Wed Jan 28 22:50:23 2009 UTC
# Line 10  Line 10 
10   * Implementation of hook_views_default_views().   * Implementation of hook_views_default_views().
11   */   */
12  function comment_alter_taxonomy_views_default_views() {  function comment_alter_taxonomy_views_default_views() {
13    
14    // ----------------------------------------    // ----------------------------------------
15    // Term view across all projects    // Term view across all projects
16    // ----------------------------------------    // ----------------------------------------
   
17    $view = new view;    $view = new view;
18    $view->name = 'project_issue_tag_all_projects';    $view->name = 'project_issue_tag_all_projects';
19    $view->description = 'Project issues for all projects by issue tag';    $view->description = 'Project issues for all projects by issue tag';
# Line 22  function comment_alter_taxonomy_views_de Line 22  function comment_alter_taxonomy_views_de
22    $view->base_table = 'node';    $view->base_table = 'node';
23    $view->is_cacheable = FALSE;    $view->is_cacheable = FALSE;
24    $view->api_version = 2;    $view->api_version = 2;
25    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */    $view->disabled = FALSE;
   
26    $handler = $view->new_display('default', 'Defaults', 'default');    $handler = $view->new_display('default', 'Defaults', 'default');
27    $handler->override_option('relationships', array(    $handler->override_option('relationships', array(
28      'assigned' => array(      'assigned' => array(
# Line 49  function comment_alter_taxonomy_views_de Line 48  function comment_alter_taxonomy_views_de
48      ),      ),
49    ));    ));
50    $handler->override_option('fields', array(    $handler->override_option('fields', array(
51      'title_1' => array(      'project_issue_queue' => array(
52        'label' => 'Project',        'label' => 'Project',
       'link_to_node' => 0,  
53        'exclude' => 0,        'exclude' => 0,
54        'id' => 'title_1',        'id' => 'project_issue_queue',
55        'table' => 'node',        'table' => 'node',
56        'field' => 'title',        'field' => 'project_issue_queue',
57        'relationship' => 'pid',        'relationship' => 'pid',
58      ),      ),
59      'title' => array(      'title' => array(
# Line 86  function comment_alter_taxonomy_views_de Line 84  function comment_alter_taxonomy_views_de
84        'field' => 'category',        'field' => 'category',
85        'relationship' => 'none',        'relationship' => 'none',
86      ),      ),
87      'version' => array(      'comment_count' => array(
88        'label' => 'Version',        'label' => 'Replies',
89        'link_to_node' => 0,        'set_precision' => FALSE,
90          'precision' => 0,
91          'decimal' => '.',
92          'separator' => ',',
93          'prefix' => '',
94          'suffix' => '',
95        'exclude' => 0,        'exclude' => 0,
96        'id' => 'version',        'id' => 'comment_count',
97        'table' => 'project_release_nodes',        'table' => 'node_comment_statistics',
98        'field' => 'version',        'field' => 'comment_count',
99        'relationship' => 'rid',        'relationship' => 'none',
100        ),
101        'new_comments' => array(
102          'label' => 'New replies',
103          'set_precision' => FALSE,
104          'precision' => 0,
105          'decimal' => '.',
106          'separator' => ',',
107          'prefix' => '',
108          'suffix' => ' new',
109          'link_to_comment' => 1,
110          'no_empty' => 1,
111          'exclude' => 0,
112          'id' => 'new_comments',
113          'table' => 'node',
114          'field' => 'new_comments',
115          'relationship' => 'none',
116      ),      ),
117      'last_comment_timestamp' => array(      'last_comment_timestamp' => array(
118        'label' => 'Last updated',        'label' => 'Last updated',
# Line 115  function comment_alter_taxonomy_views_de Line 134  function comment_alter_taxonomy_views_de
134        'relationship' => 'assigned',        'relationship' => 'assigned',
135      ),      ),
136    ));    ));
   $handler->override_option('arguments', array(  
     'term_node_tid_depth' => array(  
       'id' => 'term_node_tid_depth',  
       'table' => 'node',  
       'field' => 'term_node_tid_depth',  
       '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' => '%1',  
       'default_argument_type' => 'fixed',  
       'default_argument' => '',  
       'validate_type' => 'taxonomy_term',  
       'validate_fail' => 'not found',  
       'depth' => '0',  
       'break_phrase' => 1,  
       'relationship' => 'none',  
       'default_argument_fixed' => '',  
       'default_argument_php' => '',  
       'validate_argument_node_type' => array(  
         'album' => 0,  
         'artist' => 0,  
         'book' => 0,  
         'page' => 0,  
         'story' => 0,  
         'track' => 0,  
       ),  
       'validate_argument_vocabulary' => array(  
         '3' => 0,  
         '4' => 0,  
         '1' => 0,  
         '5' => 0,  
         '2' => 0,  
       ),  
       'validate_argument_type' => 'tids',  
       'validate_argument_php' => '',  
     ),  
     'term_node_tid_depth_modifier' => array(  
       'id' => 'term_node_tid_depth_modifier',  
       'table' => 'node',  
       'field' => 'term_node_tid_depth_modifier',  
       'default_action' => 'ignore',  
       'style_plugin' => 'default_summary',  
       'style_options' => array(  
         'count' => TRUE,  
         'override' => FALSE,  
         'items_per_page' => 25,  
       ),  
       'wildcard' => 'all',  
       'wildcard_substitution' => 'All',  
       'title' => '',  
       'default_argument_type' => 'fixed',  
       'default_argument' => '',  
       'validate_type' => 'none',  
       'validate_fail' => 'not found',  
     ),  
   ));  
137    $handler->override_option('filters', array(    $handler->override_option('filters', array(
138      'type' => array(      'type' => array(
139        'operator' => 'in',        'operator' => 'in',
# Line 227  function comment_alter_taxonomy_views_de Line 184  function comment_alter_taxonomy_views_de
184        'field' => 'title',        'field' => 'title',
185        'relationship' => 'pid',        'relationship' => 'pid',
186      ),      ),
187      'category' => array(      'sid' => array(
188        'operator' => 'in',        'operator' => 'in',
189        'value' => array(),        'value' => array(
190            'open' => 'open',
191          ),
192        'group' => '0',        'group' => '0',
193        'exposed' => TRUE,        'exposed' => TRUE,
194        'expose' => array(        'expose' => array(
195          'use_operator' => 0,          'use_operator' => 0,
196          'operator' => 'category_op',          'operator' => 'sid_op',
197          'identifier' => 'category',          'identifier' => 'status',
198          'label' => 'Category',          'label' => 'Status',
199          'optional' => 1,          'optional' => 1,
200          'single' => 1,          'single' => 1,
201          'remember' => 0,          'remember' => 0,
202          'reduce' => 0,          'reduce' => 0,
203        ),        ),
204        'id' => 'category',        'id' => 'sid',
205        'table' => 'project_issues',        'table' => 'project_issues',
206        'field' => 'category',        'field' => 'sid',
207        'relationship' => 'none',        'relationship' => 'none',
208      ),      ),
209      'priority' => array(      'priority' => array(
# Line 255  function comment_alter_taxonomy_views_de Line 214  function comment_alter_taxonomy_views_de
214        'expose' => array(        'expose' => array(
215          'use_operator' => 0,          'use_operator' => 0,
216          'operator' => 'priority_op',          'operator' => 'priority_op',
217          'identifier' => 'priority',          'identifier' => 'priorities',
218          'label' => 'Priority',          'label' => 'Priority',
219          'optional' => 1,          'optional' => 1,
220          'single' => 1,          'single' => 1,
# Line 267  function comment_alter_taxonomy_views_de Line 226  function comment_alter_taxonomy_views_de
226        'field' => 'priority',        'field' => 'priority',
227        'relationship' => 'none',        'relationship' => 'none',
228      ),      ),
229      'sid' => array(      'category' => array(
230        'operator' => 'in',        'operator' => 'in',
231        'value' => array(),        'value' => array(),
232        'group' => '0',        'group' => '0',
233        'exposed' => TRUE,        'exposed' => TRUE,
234        'expose' => array(        'expose' => array(
235          'use_operator' => 0,          'use_operator' => 0,
236          'operator' => 'sid_op',          'operator' => 'category_op',
237          'identifier' => 'status',          'identifier' => 'categories',
238          'label' => 'Status',          'label' => 'Category',
239          'optional' => 1,          'optional' => 1,
240          'single' => 1,          'single' => 1,
241          'remember' => 0,          'remember' => 0,
242          'reduce' => 0,          'reduce' => 0,
243        ),        ),
244        'id' => 'sid',        'id' => 'category',
245        'table' => 'project_issues',        'table' => 'project_issues',
246        'field' => 'sid',        'field' => 'category',
247        'relationship' => 'none',        'relationship' => 'none',
248      ),      ),
249    ));    ));
250      $handler->override_option('arguments', array(
251        'term_node_tid_depth' => array(
252          'id' => 'term_node_tid_depth',
253          'table' => 'node',
254          'field' => 'term_node_tid_depth',
255          'default_action' => 'not found',
256          'style_plugin' => 'default_summary',
257          'style_options' => array(
258            'count' => TRUE,
259            'override' => FALSE,
260            'items_per_page' => 25,
261          ),
262          'wildcard' => 'all',
263          'wildcard_substitution' => 'All',
264          'title' => '%1',
265          'default_argument_type' => 'fixed',
266          'default_argument' => '',
267          'validate_type' => 'taxonomy_term',
268          'validate_fail' => 'not found',
269          'depth' => '0',
270          'break_phrase' => 1,
271          'relationship' => 'none',
272          'default_argument_fixed' => '',
273          'default_argument_php' => '',
274          'validate_argument_node_type' => array(
275            'album' => 0,
276            'artist' => 0,
277            'book' => 0,
278            'page' => 0,
279            'story' => 0,
280            'track' => 0,
281          ),
282          'validate_argument_vocabulary' => array(
283            '3' => 0,
284            '4' => 0,
285            '1' => 0,
286            '5' => 0,
287            '2' => 0,
288          ),
289          'validate_argument_type' => 'tids',
290          'validate_argument_php' => '',
291        ),
292        'term_node_tid_depth_modifier' => array(
293          'id' => 'term_node_tid_depth_modifier',
294          'table' => 'node',
295          'field' => 'term_node_tid_depth_modifier',
296          'default_action' => 'ignore',
297          'style_plugin' => 'default_summary',
298          'style_options' => array(
299            'count' => TRUE,
300            'override' => FALSE,
301            'items_per_page' => 25,
302          ),
303          'wildcard' => 'all',
304          'wildcard_substitution' => 'All',
305          'title' => '',
306          'default_argument_type' => 'fixed',
307          'default_argument' => '',
308          'validate_type' => 'none',
309          'validate_fail' => 'not found',
310        ),
311      ));
312    $handler->override_option('access', array(    $handler->override_option('access', array(
313      'type' => 'none',      'type' => 'none',
314    ));    ));
315    $handler->override_option('title', 'Issues for all projects');    $handler->override_option('title', 'Issues for all projects');
316    $handler->override_option('items_per_page', 50);    $handler->override_option('items_per_page', 50);
317    $handler->override_option('use_pager', '1');    $handler->override_option('use_pager', '1');
318    $handler->override_option('style_plugin', 'table');    $handler->override_option('style_plugin', 'project_issue_table');
319    $handler->override_option('style_options', array(    $handler->override_option('style_options', array(
320      'grouping' => '',      'grouping' => '',
321      'override' => 1,      'override' => 1,
322      'sticky' => 0,      'sticky' => 0,
323      'order' => 'desc',      'order' => 'desc',
324      'columns' => array(      'columns' => array(
325        'title_1' => 'title_1',        'project_issue_queue' => 'project_issue_queue',
326        'title' => 'title',        'title' => 'title',
327        'sid' => 'sid',        'sid' => 'sid',
328        'priority' => 'priority',        'priority' => 'priority',
329        'category' => 'category',        'category' => 'category',
330        'name' => 'name',        'comment_count' => 'comment_count',
331        'version' => 'version',        'new_comments' => 'comment_count',
332        'last_comment_timestamp' => 'last_comment_timestamp',        'last_comment_timestamp' => 'last_comment_timestamp',
333          'name' => 'name',
334      ),      ),
335      'info' => array(      'info' => array(
336        'title_1' => array(        'project_issue_queue' => array(
337          'sortable' => 1,          'sortable' => 1,
338          'separator' => '',          'separator' => '',
339        ),        ),
# Line 331  function comment_alter_taxonomy_views_de Line 353  function comment_alter_taxonomy_views_de
353          'sortable' => 1,          'sortable' => 1,
354          'separator' => '',          'separator' => '',
355        ),        ),
356        'name' => array(        'comment_count' => array(
357          'sortable' => 1,          'sortable' => 1,
358            'separator' => '<br />',
359          ),
360          'new_comments' => array(
361          'separator' => '',          'separator' => '',
362        ),        ),
363        'version' => array(        'last_comment_timestamp' => array(
364          'sortable' => 1,          'sortable' => 1,
365          'separator' => '',          'separator' => '',
366        ),        ),
367        'last_comment_timestamp' => array(        'name' => array(
368          'sortable' => 1,          'sortable' => 1,
369          'separator' => '',          'separator' => '',
370        ),        ),
# Line 491  function comment_alter_taxonomy_views_de Line 516  function comment_alter_taxonomy_views_de
516        'field' => 'version',        'field' => 'version',
517        'relationship' => 'rid',        'relationship' => 'rid',
518      ),      ),
519        'component' => array(
520          'label' => 'Component',
521          'link_to_node' => 0,
522          'exclude' => 0,
523          'id' => 'component',
524          'table' => 'project_issues',
525          'field' => 'component',
526          'relationship' => 'none',
527        ),
528        'comment_count' => array(
529          'label' => 'Replies',
530          'set_precision' => FALSE,
531          'precision' => 0,
532          'decimal' => '.',
533          'separator' => ',',
534          'prefix' => '',
535          'suffix' => '',
536          'exclude' => 0,
537          'id' => 'comment_count',
538          'table' => 'node_comment_statistics',
539          'field' => 'comment_count',
540          'relationship' => 'none',
541        ),
542        'new_comments' => array(
543          'label' => 'New replies',
544          'set_precision' => FALSE,
545          'precision' => 0,
546          'decimal' => '.',
547          'separator' => ',',
548          'prefix' => '',
549          'suffix' => ' new',
550          'link_to_comment' => 1,
551          'no_empty' => 1,
552          'exclude' => 0,
553          'id' => 'new_comments',
554          'table' => 'node',
555          'field' => 'new_comments',
556          'relationship' => 'none',
557        ),
558      'last_comment_timestamp' => array(      'last_comment_timestamp' => array(
559        'label' => 'Last updated',        'label' => 'Last updated',
560        'date_format' => 'time ago',        'date_format' => 'time ago',
# Line 626  function comment_alter_taxonomy_views_de Line 690  function comment_alter_taxonomy_views_de
690        'field' => 'status_extra',        'field' => 'status_extra',
691        'relationship' => 'none',        'relationship' => 'none',
692      ),      ),
693        'sid' => array(
694          'operator' => 'in',
695          'value' => array(
696            'open' => 'open',
697          ),
698          'group' => '0',
699          'exposed' => TRUE,
700          'expose' => array(
701            'use_operator' => 0,
702            'operator' => 'sid_op',
703            'identifier' => 'status',
704            'label' => 'Status',
705            'optional' => 1,
706            'single' => 1,
707            'remember' => 0,
708            'reduce' => 0,
709          ),
710          'id' => 'sid',
711          'table' => 'project_issues',
712          'field' => 'sid',
713          'relationship' => 'none',
714        ),
715        'priority' => array(
716          'operator' => 'in',
717          'value' => array(),
718          'group' => '0',
719          'exposed' => TRUE,
720          'expose' => array(
721            'use_operator' => 0,
722            'operator' => 'priority_op',
723            'identifier' => 'priorities',
724            'label' => 'Priority',
725            'optional' => 1,
726            'single' => 1,
727            'remember' => 0,
728            'reduce' => 0,
729          ),
730          'id' => 'priority',
731          'table' => 'project_issues',
732          'field' => 'priority',
733          'relationship' => 'none',
734        ),
735      'category' => array(      'category' => array(
736        'operator' => 'in',        'operator' => 'in',
737        'value' => array(),        'value' => array(),
# Line 634  function comment_alter_taxonomy_views_de Line 740  function comment_alter_taxonomy_views_de
740        'expose' => array(        'expose' => array(
741          'use_operator' => 0,          'use_operator' => 0,
742          'operator' => 'category_op',          'operator' => 'category_op',
743          'identifier' => 'category',          'identifier' => 'categories',
744          'label' => 'Category',          'label' => 'Category',
745          'optional' => 1,          'optional' => 1,
746          'single' => 1,          'single' => 1,
# Line 646  function comment_alter_taxonomy_views_de Line 752  function comment_alter_taxonomy_views_de
752        'field' => 'category',        'field' => 'category',
753        'relationship' => 'none',        'relationship' => 'none',
754      ),      ),
755      'priority' => array(      'rid' => array(
756        'operator' => 'in',        'operator' => 'in',
757        'value' => array(),        'value' => array(),
758        'group' => '0',        'group' => '0',
759        'exposed' => TRUE,        'exposed' => TRUE,
760        'expose' => array(        'expose' => array(
761          'use_operator' => 0,          'use_operator' => 0,
762          'operator' => 'priority_op',          'operator' => 'rid_op',
763          'identifier' => 'priority',          'identifier' => 'version',
764          'label' => 'Priority',          'label' => 'Version',
765          'optional' => 1,          'optional' => 1,
766          'single' => 1,          'single' => 1,
767          'remember' => 0,          'remember' => 0,
768          'reduce' => 0,          'reduce' => 0,
769        ),        ),
770        'id' => 'priority',        'id' => 'rid',
771        'table' => 'project_issues',        'table' => 'project_issues',
772        'field' => 'priority',        'field' => 'rid',
773        'relationship' => 'none',        'relationship' => 'none',
774      ),      ),
775      'sid' => array(      'component' => array(
776        'operator' => 'in',        'operator' => 'in',
777        'value' => array(),        'value' => array(),
778        'group' => '0',        'group' => '0',
779        'exposed' => TRUE,        'exposed' => TRUE,
780        'expose' => array(        'expose' => array(
781          'use_operator' => 0,          'use_operator' => 0,
782          'operator' => 'sid_op',          'operator' => 'component_op',
783          'identifier' => 'status',          'identifier' => 'component',
784          'label' => 'Status',          'label' => 'Component',
785          'optional' => 1,          'optional' => 1,
786          'single' => 1,          'single' => 1,
787          'remember' => 0,          'remember' => 0,
788          'reduce' => 0,          'reduce' => 0,
789        ),        ),
790        'id' => 'sid',        'id' => 'component',
791        'table' => 'project_issues',        'table' => 'project_issues',
792        'field' => 'sid',        'field' => 'component',
793        'relationship' => 'none',        'relationship' => 'none',
794      ),      ),
795    ));    ));
# Line 693  function comment_alter_taxonomy_views_de Line 799  function comment_alter_taxonomy_views_de
799    $handler->override_option('title', 'Issues by project');    $handler->override_option('title', 'Issues by project');
800    $handler->override_option('items_per_page', 50);    $handler->override_option('items_per_page', 50);
801    $handler->override_option('use_pager', '1');    $handler->override_option('use_pager', '1');
802    $handler->override_option('style_plugin', 'table');    $handler->override_option('style_plugin', 'project_issue_table');
803    $handler->override_option('style_options', array(    $handler->override_option('style_options', array(
804      'grouping' => '',      'grouping' => '',
805      'override' => 1,      'override' => 1,
# Line 704  function comment_alter_taxonomy_views_de Line 810  function comment_alter_taxonomy_views_de
810        'sid' => 'sid',        'sid' => 'sid',
811        'priority' => 'priority',        'priority' => 'priority',
812        'category' => 'category',        'category' => 'category',
       'last_comment_timestamp' => 'last_comment_timestamp',  
813        'version' => 'version',        'version' => 'version',
814          'component' => 'component',
815          'comment_count' => 'comment_count',
816          'new_comments' => 'comment_count',
817          'last_comment_timestamp' => 'last_comment_timestamp',
818        'name' => 'name',        'name' => 'name',
819      ),      ),
820      'info' => array(      'info' => array(
# Line 729  function comment_alter_taxonomy_views_de Line 838  function comment_alter_taxonomy_views_de
838          'sortable' => 1,          'sortable' => 1,
839          'separator' => '',          'separator' => '',
840        ),        ),
841          'component' => array(
842            'sortable' => 1,
843            'separator' => '',
844          ),
845          'comment_count' => array(
846            'sortable' => 1,
847            'separator' => '<br />',
848          ),
849          'new_comments' => array(
850            'separator' => '',
851          ),
852        'last_comment_timestamp' => array(        'last_comment_timestamp' => array(
853          'sortable' => 1,          'sortable' => 1,
854          'separator' => '',          'separator' => '',

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2