source: sipei/modules/proyecto_estrategico/views/proyecto_estrategico.views_default.inc @ ffa4103

drupal-6.x
Last change on this file since ffa4103 was ffa4103, checked in by Luis Peña <lpena@…>, 12 años ago

Cambiando el nombre de modulos a modules

  • Propiedad mode establecida a 100644
File size: 23.1 KB
Línea 
1<?php
2
3/**
4 * Implement hook_views_default_views().
5 */
6function proyecto_estrategico_views_default_views() {
7  $view = new view;
8    $view->name = 'proyectos_estrategicos';
9    $view->description = 'proyecto_estrategico';
10    $view->tag = '';
11    $view->view_php = '';
12    $view->base_table = 'node';
13    $view->is_cacheable = FALSE;
14    $view->api_version = 2;
15    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
16    $handler = $view->new_display('default', 'Defaults', 'default');
17    $handler->override_option('relationships', array(
18      'field_estrategico_ente_nid' => array(
19        'label' => 'Ente Planificador',
20        'required' => 1,
21        'delta' => -1,
22        'id' => 'field_estrategico_ente_nid',
23        'table' => 'node_data_field_estrategico_ente',
24        'field' => 'field_estrategico_ente_nid',
25        'relationship' => 'none',
26      ),
27    ));
28    $handler->override_option('fields', array(
29      'title_1' => array(
30        'label' => 'Ente Planificador',
31        'alter' => array(
32          'alter_text' => 0,
33          'text' => '',
34          'make_link' => 0,
35          'path' => '',
36          'link_class' => '',
37          'alt' => '',
38          'prefix' => '',
39          'suffix' => '',
40          'target' => '',
41          'help' => '',
42          'trim' => 0,
43          'max_length' => '',
44          'word_boundary' => 1,
45          'ellipsis' => 1,
46          'html' => 0,
47          'strip_tags' => 0,
48        ),
49        'empty' => '',
50        'hide_empty' => 0,
51        'empty_zero' => 0,
52        'link_to_node' => 0,
53        'exclude' => 0,
54        'id' => 'title_1',
55        'table' => 'node',
56        'field' => 'title',
57        'relationship' => 'field_estrategico_ente_nid',
58        'editablefields_allowed' => 0,
59        'editablefields_responder' => 'inline',
60        'editablefields_editable' => 'node',
61      ),
62      'title' => array(
63        'label' => 'Título del Proyecto',
64        'alter' => array(
65          'alter_text' => 0,
66          'text' => '',
67          'make_link' => 0,
68          'path' => '',
69          'link_class' => '',
70          'alt' => '',
71          'prefix' => '',
72          'suffix' => '',
73          'target' => '',
74          'help' => '',
75          'trim' => 0,
76          'max_length' => '',
77          'word_boundary' => 1,
78          'ellipsis' => 1,
79          'html' => 0,
80          'strip_tags' => 0,
81        ),
82        'empty' => '',
83        'hide_empty' => 0,
84        'empty_zero' => 0,
85        'link_to_node' => 0,
86        'exclude' => 0,
87        'id' => 'title',
88        'table' => 'node',
89        'field' => 'title',
90        'relationship' => 'none',
91        'editablefields_allowed' => 0,
92        'editablefields_responder' => 'inline',
93        'editablefields_editable' => 'node',
94      ),
95      'field_estrategico_cantidad_value' => array(
96        'label' => 'Cantidad',
97        'alter' => array(
98          'alter_text' => 0,
99          'text' => '',
100          'make_link' => 0,
101          'path' => '',
102          'link_class' => '',
103          'alt' => '',
104          'prefix' => '',
105          'suffix' => '',
106          'target' => '',
107          'help' => '',
108          'trim' => 0,
109          'max_length' => '',
110          'word_boundary' => 1,
111          'ellipsis' => 1,
112          'html' => 0,
113          'strip_tags' => 0,
114        ),
115        'empty' => '',
116        'hide_empty' => 0,
117        'empty_zero' => 0,
118        'link_to_node' => 0,
119        'label_type' => 'widget',
120        'format' => 'default',
121        'multiple' => array(
122          'group' => TRUE,
123          'multiple_number' => '',
124          'multiple_from' => '',
125          'multiple_reversed' => FALSE,
126        ),
127        'exclude' => 0,
128        'id' => 'field_estrategico_cantidad_value',
129        'table' => 'node_data_field_estrategico_cantidad',
130        'field' => 'field_estrategico_cantidad_value',
131        'relationship' => 'none',
132      ),
133      'field_estrategico_institu_value' => array(
134        'label' => 'Conexiones Institucionales',
135        'alter' => array(
136          'alter_text' => 0,
137          'text' => '',
138          'make_link' => 0,
139          'path' => '',
140          'link_class' => '',
141          'alt' => '',
142          'prefix' => '',
143          'suffix' => '',
144          'target' => '',
145          'help' => '',
146          'trim' => 0,
147          'max_length' => '',
148          'word_boundary' => 1,
149          'ellipsis' => 1,
150          'html' => 0,
151          'strip_tags' => 0,
152        ),
153        'empty' => '',
154        'hide_empty' => 0,
155        'empty_zero' => 0,
156        'link_to_node' => 0,
157        'label_type' => 'widget',
158        'format' => 'plain',
159        'multiple' => array(
160          'group' => 1,
161          'multiple_number' => '',
162          'multiple_from' => '',
163          'multiple_reversed' => 0,
164        ),
165        'exclude' => 0,
166        'id' => 'field_estrategico_institu_value',
167        'table' => 'node_data_field_estrategico_institu',
168        'field' => 'field_estrategico_institu_value',
169        'relationship' => 'none',
170      ),
171      'field_estrategico_codigo_value' => array(
172        'label' => 'Código Interno',
173        'alter' => array(
174          'alter_text' => 0,
175          'text' => '',
176          'make_link' => 0,
177          'path' => '',
178          'link_class' => '',
179          'alt' => '',
180          'prefix' => '',
181          'suffix' => '',
182          'target' => '',
183          'help' => '',
184          'trim' => 0,
185          'max_length' => '',
186          'word_boundary' => 1,
187          'ellipsis' => 1,
188          'html' => 0,
189          'strip_tags' => 0,
190        ),
191        'empty' => '',
192        'hide_empty' => 0,
193        'empty_zero' => 0,
194        'link_to_node' => 0,
195        'label_type' => 'widget',
196        'format' => 'plain',
197        'multiple' => array(
198          'group' => TRUE,
199          'multiple_number' => '',
200          'multiple_from' => '',
201          'multiple_reversed' => FALSE,
202        ),
203        'exclude' => 0,
204        'id' => 'field_estrategico_codigo_value',
205        'table' => 'node_data_field_estrategico_codigo',
206        'field' => 'field_estrategico_codigo_value',
207        'relationship' => 'none',
208      ),
209      'field_estrategico_necesi_value' => array(
210        'label' => 'Debilidades o Necesidades',
211        'alter' => array(
212          'alter_text' => 0,
213          'text' => '',
214          'make_link' => 0,
215          'path' => '',
216          'link_class' => '',
217          'alt' => '',
218          'prefix' => '',
219          'suffix' => '',
220          'target' => '',
221          'help' => '',
222          'trim' => 0,
223          'max_length' => '',
224          'word_boundary' => 1,
225          'ellipsis' => 1,
226          'html' => 0,
227          'strip_tags' => 0,
228        ),
229        'empty' => '',
230        'hide_empty' => 0,
231        'empty_zero' => 0,
232        'link_to_node' => 0,
233        'label_type' => 'widget',
234        'format' => 'plain',
235        'multiple' => array(
236          'group' => 1,
237          'multiple_number' => '',
238          'multiple_from' => '',
239          'multiple_reversed' => 0,
240        ),
241        'exclude' => 0,
242        'id' => 'field_estrategico_necesi_value',
243        'table' => 'node_data_field_estrategico_necesi',
244        'field' => 'field_estrategico_necesi_value',
245        'relationship' => 'none',
246      ),
247      'field_objetivo_indicador_value' => array(
248        'label' => 'Descripción del indicador',
249        'alter' => array(
250          'alter_text' => 0,
251          'text' => '',
252          'make_link' => 0,
253          'path' => '',
254          'link_class' => '',
255          'alt' => '',
256          'prefix' => '',
257          'suffix' => '',
258          'target' => '',
259          'help' => '',
260          'trim' => 0,
261          'max_length' => '',
262          'word_boundary' => 1,
263          'ellipsis' => 1,
264          'html' => 0,
265          'strip_tags' => 0,
266        ),
267        'empty' => '',
268        'hide_empty' => 0,
269        'empty_zero' => 0,
270        'link_to_node' => 0,
271        'label_type' => 'widget',
272        'format' => 'plain',
273        'multiple' => array(
274          'group' => TRUE,
275          'multiple_number' => '',
276          'multiple_from' => '',
277          'multiple_reversed' => FALSE,
278        ),
279        'exclude' => 0,
280        'id' => 'field_objetivo_indicador_value',
281        'table' => 'node_data_field_objetivo_indicador',
282        'field' => 'field_objetivo_indicador_value',
283        'relationship' => 'none',
284      ),
285      'field_estrategico_ente_nid' => array(
286        'label' => 'Ente Planificador',
287        'alter' => array(
288          'alter_text' => 0,
289          'text' => '',
290          'make_link' => 0,
291          'path' => '',
292          'link_class' => '',
293          'alt' => '',
294          'prefix' => '',
295          'suffix' => '',
296          'target' => '',
297          'help' => '',
298          'trim' => 0,
299          'max_length' => '',
300          'word_boundary' => 1,
301          'ellipsis' => 1,
302          'html' => 0,
303          'strip_tags' => 0,
304        ),
305        'empty' => '',
306        'hide_empty' => 0,
307        'empty_zero' => 0,
308        'link_to_node' => 0,
309        'label_type' => 'widget',
310        'format' => 'plain',
311        'multiple' => array(
312          'group' => TRUE,
313          'multiple_number' => '',
314          'multiple_from' => '',
315          'multiple_reversed' => FALSE,
316        ),
317        'exclude' => 0,
318        'id' => 'field_estrategico_ente_nid',
319        'table' => 'node_data_field_estrategico_ente',
320        'field' => 'field_estrategico_ente_nid',
321        'relationship' => 'none',
322      ),
323      'field_estrategico_ejecucion_value' => array(
324        'label' => 'Lapso de Ejecución',
325        'alter' => array(
326          'alter_text' => 0,
327          'text' => '',
328          'make_link' => 0,
329          'path' => '',
330          'link_class' => '',
331          'alt' => '',
332          'prefix' => '',
333          'suffix' => '',
334          'target' => '',
335          'help' => '',
336          'trim' => 0,
337          'max_length' => '',
338          'word_boundary' => 1,
339          'ellipsis' => 1,
340          'html' => 0,
341          'strip_tags' => 0,
342        ),
343        'empty' => '',
344        'hide_empty' => 0,
345        'empty_zero' => 0,
346        'link_to_node' => 0,
347        'label_type' => 'widget',
348        'format' => 'default',
349        'multiple' => array(
350          'group' => TRUE,
351          'multiple_number' => '',
352          'multiple_from' => '',
353          'multiple_reversed' => FALSE,
354        ),
355        'exclude' => 0,
356        'id' => 'field_estrategico_ejecucion_value',
357        'table' => 'node_data_field_estrategico_ejecucion',
358        'field' => 'field_estrategico_ejecucion_value',
359        'relationship' => 'none',
360      ),
361      'field_objetivo_meta_anual_value' => array(
362        'label' => 'Meta anual',
363        'alter' => array(
364          'alter_text' => 0,
365          'text' => '',
366          'make_link' => 0,
367          'path' => '',
368          'link_class' => '',
369          'alt' => '',
370          'prefix' => '',
371          'suffix' => '',
372          'target' => '',
373          'help' => '',
374          'trim' => 0,
375          'max_length' => '',
376          'word_boundary' => 1,
377          'ellipsis' => 1,
378          'html' => 0,
379          'strip_tags' => 0,
380        ),
381        'empty' => '',
382        'hide_empty' => 0,
383        'empty_zero' => 0,
384        'link_to_node' => 0,
385        'label_type' => 'widget',
386        'format' => 'default',
387        'multiple' => array(
388          'group' => 1,
389          'multiple_number' => '',
390          'multiple_from' => '',
391          'multiple_reversed' => 0,
392        ),
393        'exclude' => 0,
394        'id' => 'field_objetivo_meta_anual_value',
395        'table' => 'node_data_field_objetivo_meta_anual',
396        'field' => 'field_objetivo_meta_anual_value',
397        'relationship' => 'none',
398      ),
399      'field_objetivo_meta_total_value' => array(
400        'label' => 'Meta total',
401        'alter' => array(
402          'alter_text' => 0,
403          'text' => '',
404          'make_link' => 0,
405          'path' => '',
406          'link_class' => '',
407          'alt' => '',
408          'prefix' => '',
409          'suffix' => '',
410          'target' => '',
411          'help' => '',
412          'trim' => 0,
413          'max_length' => '',
414          'word_boundary' => 1,
415          'ellipsis' => 1,
416          'html' => 0,
417          'strip_tags' => 0,
418        ),
419        'empty' => '',
420        'hide_empty' => 0,
421        'empty_zero' => 0,
422        'link_to_node' => 0,
423        'label_type' => 'widget',
424        'format' => 'default',
425        'multiple' => array(
426          'group' => TRUE,
427          'multiple_number' => '',
428          'multiple_from' => '',
429          'multiple_reversed' => FALSE,
430        ),
431        'exclude' => 0,
432        'id' => 'field_objetivo_meta_total_value',
433        'table' => 'node_data_field_objetivo_meta_total',
434        'field' => 'field_objetivo_meta_total_value',
435        'relationship' => 'none',
436      ),
437      'field_estrategico_anual_value' => array(
438        'label' => 'Monto Anual del Proyecto',
439        'alter' => array(
440          'alter_text' => 0,
441          'text' => '',
442          'make_link' => 0,
443          'path' => '',
444          'link_class' => '',
445          'alt' => '',
446          'prefix' => '',
447          'suffix' => '',
448          'target' => '',
449          'help' => '',
450          'trim' => 0,
451          'max_length' => '',
452          'word_boundary' => 1,
453          'ellipsis' => 1,
454          'html' => 0,
455          'strip_tags' => 0,
456        ),
457        'empty' => '',
458        'hide_empty' => 0,
459        'empty_zero' => 0,
460        'link_to_node' => 0,
461        'label_type' => 'widget',
462        'format' => 'default',
463        'multiple' => array(
464          'group' => 1,
465          'multiple_number' => '',
466          'multiple_from' => '',
467          'multiple_reversed' => 0,
468        ),
469        'exclude' => 0,
470        'id' => 'field_estrategico_anual_value',
471        'table' => 'node_data_field_estrategico_anual',
472        'field' => 'field_estrategico_anual_value',
473        'relationship' => 'none',
474      ),
475      'field_estrategico_total_value' => array(
476        'label' => 'Monto Total',
477        'alter' => array(
478          'alter_text' => 0,
479          'text' => '',
480          'make_link' => 0,
481          'path' => '',
482          'link_class' => '',
483          'alt' => '',
484          'prefix' => '',
485          'suffix' => '',
486          'target' => '',
487          'help' => '',
488          'trim' => 0,
489          'max_length' => '',
490          'word_boundary' => 1,
491          'ellipsis' => 1,
492          'html' => 0,
493          'strip_tags' => 0,
494        ),
495        'empty' => '',
496        'hide_empty' => 0,
497        'empty_zero' => 0,
498        'link_to_node' => 0,
499        'label_type' => 'widget',
500        'format' => 'default',
501        'multiple' => array(
502          'group' => TRUE,
503          'multiple_number' => '',
504          'multiple_from' => '',
505          'multiple_reversed' => FALSE,
506        ),
507        'exclude' => 0,
508        'id' => 'field_estrategico_total_value',
509        'table' => 'node_data_field_estrategico_total',
510        'field' => 'field_estrategico_total_value',
511        'relationship' => 'none',
512      ),
513      'field_estrategico_objetivo_value' => array(
514        'label' => 'Objetivo del proyecto',
515        'alter' => array(
516          'alter_text' => 0,
517          'text' => '',
518          'make_link' => 0,
519          'path' => '',
520          'link_class' => '',
521          'alt' => '',
522          'prefix' => '',
523          'suffix' => '',
524          'target' => '',
525          'help' => '',
526          'trim' => 0,
527          'max_length' => '',
528          'word_boundary' => 1,
529          'ellipsis' => 1,
530          'html' => 0,
531          'strip_tags' => 0,
532        ),
533        'empty' => '',
534        'hide_empty' => 0,
535        'empty_zero' => 0,
536        'link_to_node' => 0,
537        'label_type' => 'widget',
538        'format' => 'plain',
539        'multiple' => array(
540          'group' => TRUE,
541          'multiple_number' => '',
542          'multiple_from' => '',
543          'multiple_reversed' => FALSE,
544        ),
545        'exclude' => 0,
546        'id' => 'field_estrategico_objetivo_value',
547        'table' => 'node_data_field_estrategico_objetivo',
548        'field' => 'field_estrategico_objetivo_value',
549        'relationship' => 'none',
550      ),
551      'field_estrategico_poblacion_value' => array(
552        'label' => 'Población beneficiada',
553        'alter' => array(
554          'alter_text' => 0,
555          'text' => '',
556          'make_link' => 0,
557          'path' => '',
558          'link_class' => '',
559          'alt' => '',
560          'prefix' => '',
561          'suffix' => '',
562          'target' => '',
563          'help' => '',
564          'trim' => 0,
565          'max_length' => '',
566          'word_boundary' => 1,
567          'ellipsis' => 1,
568          'html' => 0,
569          'strip_tags' => 0,
570        ),
571        'empty' => '',
572        'hide_empty' => 0,
573        'empty_zero' => 0,
574        'link_to_node' => 0,
575        'label_type' => 'widget',
576        'format' => 'plain',
577        'multiple' => array(
578          'group' => 1,
579          'multiple_number' => '',
580          'multiple_from' => '',
581          'multiple_reversed' => 0,
582        ),
583        'exclude' => 0,
584        'id' => 'field_estrategico_poblacion_value',
585        'table' => 'node_data_field_estrategico_poblacion',
586        'field' => 'field_estrategico_poblacion_value',
587        'relationship' => 'none',
588      ),
589      'field_estrategicoopolinspoa_value' => array(
590        'label' => 'Política Institucional del POA',
591        'alter' => array(
592          'alter_text' => 0,
593          'text' => '',
594          'make_link' => 0,
595          'path' => '',
596          'link_class' => '',
597          'alt' => '',
598          'prefix' => '',
599          'suffix' => '',
600          'target' => '',
601          'help' => '',
602          'trim' => 0,
603          'max_length' => '',
604          'word_boundary' => 1,
605          'ellipsis' => 1,
606          'html' => 0,
607          'strip_tags' => 0,
608        ),
609        'empty' => '',
610        'hide_empty' => 0,
611        'empty_zero' => 0,
612        'link_to_node' => 0,
613        'label_type' => 'widget',
614        'format' => 'plain',
615        'multiple' => array(
616          'group' => 1,
617          'multiple_number' => '',
618          'multiple_from' => '',
619          'multiple_reversed' => 0,
620        ),
621        'exclude' => 0,
622        'id' => 'field_estrategicoopolinspoa_value',
623        'table' => 'node_data_field_estrategicoopolinspoa',
624        'field' => 'field_estrategicoopolinspoa_value',
625        'relationship' => 'none',
626      ),
627      'field_estrategico_producto_value' => array(
628        'label' => 'Producto',
629        'alter' => array(
630          'alter_text' => 0,
631          'text' => '',
632          'make_link' => 0,
633          'path' => '',
634          'link_class' => '',
635          'alt' => '',
636          'prefix' => '',
637          'suffix' => '',
638          'target' => '',
639          'help' => '',
640          'trim' => 0,
641          'max_length' => '',
642          'word_boundary' => 1,
643          'ellipsis' => 1,
644          'html' => 0,
645          'strip_tags' => 0,
646        ),
647        'empty' => '',
648        'hide_empty' => 0,
649        'empty_zero' => 0,
650        'link_to_node' => 0,
651        'label_type' => 'widget',
652        'format' => 'plain',
653        'multiple' => array(
654          'group' => TRUE,
655          'multiple_number' => '',
656          'multiple_from' => '',
657          'multiple_reversed' => FALSE,
658        ),
659        'exclude' => 0,
660        'id' => 'field_estrategico_producto_value',
661        'table' => 'node_data_field_estrategico_producto',
662        'field' => 'field_estrategico_producto_value',
663        'relationship' => 'none',
664      ),
665      'field_estrategico_unidad_value' => array(
666        'label' => 'Unidad de Medida',
667        'alter' => array(
668          'alter_text' => 0,
669          'text' => '',
670          'make_link' => 0,
671          'path' => '',
672          'link_class' => '',
673          'alt' => '',
674          'prefix' => '',
675          'suffix' => '',
676          'target' => '',
677          'help' => '',
678          'trim' => 0,
679          'max_length' => '',
680          'word_boundary' => 1,
681          'ellipsis' => 1,
682          'html' => 0,
683          'strip_tags' => 0,
684        ),
685        'empty' => '',
686        'hide_empty' => 0,
687        'empty_zero' => 0,
688        'link_to_node' => 0,
689        'label_type' => 'widget',
690        'format' => 'plain',
691        'multiple' => array(
692          'group' => TRUE,
693          'multiple_number' => '',
694          'multiple_from' => '',
695          'multiple_reversed' => FALSE,
696        ),
697        'exclude' => 0,
698        'id' => 'field_estrategico_unidad_value',
699        'table' => 'node_data_field_estrategico_unidad',
700        'field' => 'field_estrategico_unidad_value',
701        'relationship' => 'none',
702      ),
703    ));
704    $handler->override_option('sorts', array(
705      'title' => array(
706        'order' => 'ASC',
707        'id' => 'title',
708        'table' => 'node',
709        'field' => 'title',
710        'relationship' => 'field_estrategico_ente_nid',
711      ),
712      'title_1' => array(
713        'order' => 'ASC',
714        'id' => 'title_1',
715        'table' => 'node',
716        'field' => 'title',
717        'relationship' => 'none',
718      ),
719    ));
720    $handler->override_option('filters', array(
721      'type' => array(
722        'operator' => 'in',
723        'value' => array(
724          'proyecto_estrategico' => 'proyecto_estrategico',
725        ),
726        'group' => '0',
727        'exposed' => FALSE,
728        'expose' => array(
729          'operator' => FALSE,
730          'label' => '',
731        ),
732        'id' => 'type',
733        'table' => 'node',
734        'field' => 'type',
735        'relationship' => 'none',
736      ),
737      'title' => array(
738        'operator' => '=',
739        'value' => '',
740        'group' => '0',
741        'exposed' => TRUE,
742        'expose' => array(
743          'use_operator' => 0,
744          'operator' => 'title_op',
745          'identifier' => 'title',
746          'label' => 'Ente planificador',
747          'optional' => 1,
748          'remember' => 0,
749        ),
750        'case' => 1,
751        'id' => 'title',
752        'table' => 'node',
753        'field' => 'title',
754        'relationship' => 'field_estrategico_ente_nid',
755      ),
756      'title_1' => array(
757        'operator' => '=',
758        'value' => '',
759        'group' => '0',
760        'exposed' => TRUE,
761        'expose' => array(
762          'use_operator' => 0,
763          'operator' => 'title_1_op',
764          'identifier' => 'title_1',
765          'label' => 'Título del proyecto',
766          'optional' => 1,
767          'remember' => 0,
768        ),
769        'case' => 1,
770        'id' => 'title_1',
771        'table' => 'node',
772        'field' => 'title',
773        'relationship' => 'none',
774      ),
775    ));
776    $handler->override_option('access', array(
777      'type' => 'perm',
778      'perm' => 'admin planificador',
779    ));
780    $handler->override_option('cache', array(
781      'type' => 'none',
782    ));
783    $handler->override_option('empty', 'No se encontrarón proyectos');
784    $handler->override_option('empty_format', '1');
785    $handler->override_option('style_plugin', 'table');
786    $handler = $view->new_display('page', 'Página', 'page_1');
787    $handler->override_option('path', 'reportes/proyecto_estrategico');
788    $handler->override_option('menu', array(
789      'type' => 'tab',
790      'title' => 'Proyecto Estrategico',
791      'description' => '',
792      'weight' => '0',
793      'name' => 'navigation',
794    ));
795    $handler->override_option('tab_options', array(
796      'type' => 'none',
797      'title' => '',
798      'description' => '',
799      'weight' => 0,
800      'name' => 'navigation',
801    ));
802  return $views;
803}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.