source: sipes/0.3-modules/politicas_direccionales/views/politicas_direccionales.views_default.inc @ 2fa3319

stableversion-3.0
Last change on this file since 2fa3319 was 303fae2, checked in by José Gregorio Puentes <jpuentes@…>, 9 años ago

se agregaron los modulos

  • Propiedad mode establecida a 100755
File size: 23.7 KB
Línea 
1<?php
2
3  /**
4  *
5  * Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana
6  * @file politicas_direccionales_views_default.inc
7  * Drupal part Module to install ente planificador module
8  * Copyright 2011 Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana (CENDITEL)
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23  *
24  * @author Cenditel Merida - Msc. Juan Vizcarrondo
25  * Modificado por: Msc. Juan Vizcarrondo @date YYYY-MM-DD.
26  * @date 2013-12-16 // (a&#241;o-mes-dia)
27  * @version 0.2 // (0.1)
28  *
29  */
30
31/**
32 * Implementation of hook_views_default_views().
33 */
34function politicas_direccionales_views_default_views() {
35  $views = array();
36  $view = new view;
37
38$view = new view;
39$view->name = 'posibles_politicas';
40$view->description = '';
41$view->tag = '';
42$view->view_php = '';
43$view->base_table = 'node';
44$view->is_cacheable = FALSE;
45$view->api_version = 2;
46$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
47$handler = $view->new_display('default', 'Predefinidos', 'default');
48$handler->override_option('relationships', array(
49  'field_politicas_ente_nid' => array(
50    'label' => 'Ente Planificador',
51    'required' => 1,
52    'delta' => -1,
53    'id' => 'field_politicas_ente_nid',
54    'table' => 'node_data_field_politicas_ente',
55    'field' => 'field_politicas_ente_nid',
56    'relationship' => 'none',
57  ),
58));
59$handler->override_option('fields', array(
60  'body' => array(
61    'label' => 'Posible Política',
62    'alter' => array(
63      'alter_text' => 0,
64      'text' => '',
65      'make_link' => 0,
66      'path' => '',
67      'link_class' => '',
68      'alt' => '',
69      'prefix' => '',
70      'suffix' => '',
71      'target' => '',
72      'help' => '',
73      'trim' => 0,
74      'max_length' => '',
75      'word_boundary' => 1,
76      'ellipsis' => 1,
77      'html' => 0,
78      'strip_tags' => 1,
79    ),
80    'empty' => '',
81    'hide_empty' => 0,
82    'empty_zero' => 0,
83    'exclude' => 0,
84    'id' => 'body',
85    'table' => 'node_revisions',
86    'field' => 'body',
87    'relationship' => 'none',
88  ),
89  'title' => array(
90    'label' => 'Posible Política',
91    'alter' => array(
92      'alter_text' => 0,
93      'text' => '',
94      'make_link' => 0,
95      'path' => '',
96      'link_class' => '',
97      'alt' => '',
98      'prefix' => '',
99      'suffix' => '',
100      'target' => '',
101      'help' => '',
102      'trim' => 0,
103      'max_length' => '',
104      'word_boundary' => 1,
105      'ellipsis' => 1,
106      'html' => 0,
107      'strip_tags' => 1,
108    ),
109    'empty' => '',
110    'hide_empty' => 0,
111    'empty_zero' => 0,
112    'link_to_node' => 0,
113    'exclude' => 1,
114    'id' => 'title',
115    'table' => 'node',
116    'field' => 'title',
117    'relationship' => 'none',
118    'editablefields_allowed' => 0,
119    'editablefields_responder' => 'modal',
120    'editablefields_editable' => 'node',
121  ),
122  'field_politicas_areasimp_value' => array(
123    'label' => 'Áreas de impacto',
124    'alter' => array(
125      'alter_text' => 0,
126      'text' => '',
127      'make_link' => 0,
128      'path' => '',
129      'link_class' => '',
130      'alt' => '',
131      'prefix' => '',
132      'suffix' => '',
133      'target' => '',
134      'help' => '',
135      'trim' => 0,
136      'max_length' => '',
137      'word_boundary' => 1,
138      'ellipsis' => 1,
139      'html' => 0,
140      'strip_tags' => 0,
141    ),
142    'empty' => '',
143    'hide_empty' => 0,
144    'empty_zero' => 0,
145    'link_to_node' => 0,
146    'label_type' => 'widget',
147    'format' => 'plain',
148    'multiple' => array(
149      'group' => 1,
150      'multiple_number' => '',
151      'multiple_from' => '',
152      'multiple_reversed' => 0,
153    ),
154    'exclude' => 0,
155    'id' => 'field_politicas_areasimp_value',
156    'table' => 'node_data_field_politicas_areasimp',
157    'field' => 'field_politicas_areasimp_value',
158    'relationship' => 'none',
159  ),
160  'field_politicas_requerimientos_value' => array(
161    'label' => 'Requerimientos',
162    'alter' => array(
163      'alter_text' => 0,
164      'text' => '',
165      'make_link' => 0,
166      'path' => '',
167      'link_class' => '',
168      'alt' => '',
169      'prefix' => '',
170      'suffix' => '',
171      'target' => '',
172      'help' => '',
173      'trim' => 0,
174      'max_length' => '',
175      'word_boundary' => 1,
176      'ellipsis' => 1,
177      'html' => 0,
178      'strip_tags' => 0,
179    ),
180    'empty' => '',
181    'hide_empty' => 0,
182    'empty_zero' => 0,
183    'link_to_node' => 0,
184    'label_type' => 'widget',
185    'format' => 'plain',
186    'multiple' => array(
187      'group' => 1,
188      'multiple_number' => '',
189      'multiple_from' => '',
190      'multiple_reversed' => 0,
191    ),
192    'exclude' => 0,
193    'id' => 'field_politicas_requerimientos_value',
194    'table' => 'node_data_field_politicas_requerimientos',
195    'field' => 'field_politicas_requerimientos_value',
196    'relationship' => 'none',
197  ),
198  'field_politicas_causas_nid' => array(
199    'label' => 'Causas Críticas',
200    'alter' => array(
201      'alter_text' => 0,
202      'text' => '',
203      'make_link' => 0,
204      'path' => '',
205      'link_class' => '',
206      'alt' => '',
207      'prefix' => '',
208      'suffix' => '',
209      'target' => '',
210      'help' => '',
211      'trim' => 0,
212      'max_length' => '',
213      'word_boundary' => 1,
214      'ellipsis' => 1,
215      'html' => 0,
216      'strip_tags' => 0,
217    ),
218    'empty' => '',
219    'hide_empty' => 0,
220    'empty_zero' => 0,
221    'link_to_node' => 0,
222    'label_type' => 'widget',
223    'format' => 'plain',
224    'multiple' => array(
225      'group' => 1,
226      'multiple_number' => '',
227      'multiple_from' => '',
228      'multiple_reversed' => 0,
229    ),
230    'exclude' => 0,
231    'id' => 'field_politicas_causas_nid',
232    'table' => 'node_data_field_politicas_causas',
233    'field' => 'field_politicas_causas_nid',
234    'relationship' => 'none',
235  ),
236  'nid' => array(
237    'label' => 'Nid',
238    'alter' => array(
239      'alter_text' => 0,
240      'text' => '',
241      'make_link' => 0,
242      'path' => '',
243      'link_class' => '',
244      'alt' => '',
245      'prefix' => '',
246      'suffix' => '',
247      'target' => '',
248      'help' => '',
249      'trim' => 0,
250      'max_length' => '',
251      'word_boundary' => 1,
252      'ellipsis' => 1,
253      'html' => 0,
254      'strip_tags' => 0,
255    ),
256    'empty' => '',
257    'hide_empty' => 0,
258    'empty_zero' => 0,
259    'link_to_node' => 0,
260    'exclude' => 1,
261    'id' => 'nid',
262    'table' => 'node',
263    'field' => 'nid',
264    'relationship' => 'field_politicas_ente_nid',
265  ),
266  'nid_1' => array(
267    'label' => 'Nid',
268    'alter' => array(
269      'alter_text' => 0,
270      'text' => '',
271      'make_link' => 0,
272      'path' => '',
273      'link_class' => '',
274      'alt' => '',
275      'prefix' => '',
276      'suffix' => '',
277      'target' => '',
278      'help' => '',
279      'trim' => 0,
280      'max_length' => '',
281      'word_boundary' => 1,
282      'ellipsis' => 1,
283      'html' => 0,
284      'strip_tags' => 0,
285    ),
286    'empty' => '',
287    'hide_empty' => 0,
288    'empty_zero' => 0,
289    'link_to_node' => 0,
290    'exclude' => 1,
291    'id' => 'nid_1',
292    'table' => 'node',
293    'field' => 'nid',
294    'relationship' => 'none',
295  ),
296  'nothing' => array(
297    'label' => 'Texto personalizado',
298    'alter' => array(
299      'text' => 'Modificar',
300      'make_link' => 1,
301      'path' => 'planificacion/[nid]/politicas/posibles/[nid_1]/editar?destination=planificacion/[nid]/politicas/posibles/buscar',
302      'link_class' => '',
303      'alt' => 'Modificar [title]',
304      'prefix' => '',
305      'suffix' => '',
306      'target' => '',
307      'help' => '',
308      'trim' => 0,
309      'max_length' => '',
310      'word_boundary' => 1,
311      'ellipsis' => 1,
312      'html' => 0,
313      'strip_tags' => 0,
314    ),
315    'empty' => '',
316    'hide_empty' => 0,
317    'empty_zero' => 0,
318    'exclude' => 1,
319    'id' => 'nothing',
320    'table' => 'views',
321    'field' => 'nothing',
322    'relationship' => 'none',
323  ),
324  'nothing_1' => array(
325    'label' => 'Texto personalizado',
326    'alter' => array(
327      'text' => 'Eliminar',
328      'make_link' => 1,
329      'path' => 'planificacion/[nid]/politicas/posibles/[nid_1]/remove?destination=planificacion/[nid]/politicas/posibles/buscar',
330      'link_class' => '',
331      'alt' => 'Eliminar [title]',
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    'exclude' => 1,
347    'id' => 'nothing_1',
348    'table' => 'views',
349    'field' => 'nothing',
350    'relationship' => 'none',
351  ),
352  'nothing_2' => array(
353    'label' => 'Acciones Disponibles',
354    'alter' => array(
355      'text' => '<ul>
356<li>[nothing]</li>
357<li>[nothing_1]</li>
358</ul>',
359      'make_link' => 0,
360      'path' => '',
361      'link_class' => '',
362      'alt' => '',
363      'prefix' => '',
364      'suffix' => '',
365      'target' => '',
366      'help' => '',
367      'trim' => 0,
368      'max_length' => '',
369      'word_boundary' => 1,
370      'ellipsis' => 1,
371      'html' => 0,
372      'strip_tags' => 0,
373    ),
374    'empty' => '',
375    'hide_empty' => 0,
376    'empty_zero' => 0,
377    'exclude' => 0,
378    'id' => 'nothing_2',
379    'table' => 'views',
380    'field' => 'nothing',
381    'relationship' => 'none',
382  ),
383));
384$handler->override_option('sorts', array(
385  'title' => array(
386    'order' => 'ASC',
387    'id' => 'title',
388    'table' => 'node',
389    'field' => 'title',
390    'relationship' => 'none',
391  ),
392));
393$handler->override_option('filters', array(
394  'type' => array(
395    'operator' => 'in',
396    'value' => array(
397      'politicas_direccionales' => 'politicas_direccionales',
398    ),
399    'group' => '0',
400    'exposed' => FALSE,
401    'expose' => array(
402      'operator' => FALSE,
403      'label' => '',
404    ),
405    'id' => 'type',
406    'table' => 'node',
407    'field' => 'type',
408    'relationship' => 'none',
409  ),
410  'body' => array(
411    'operator' => 'contains',
412    'value' => '',
413    'group' => '0',
414    'exposed' => TRUE,
415    'expose' => array(
416      'use_operator' => 0,
417      'operator' => 'body_op',
418      'identifier' => 'body',
419      'label' => 'Posible Política',
420      'optional' => 1,
421      'remember' => 0,
422    ),
423    'case' => 1,
424    'id' => 'body',
425    'table' => 'node_revisions',
426    'field' => 'body',
427    'relationship' => 'none',
428  ),
429  'field_politicas_areasimp_value' => array(
430    'operator' => 'contains',
431    'value' => '',
432    'group' => '0',
433    'exposed' => TRUE,
434    'expose' => array(
435      'use_operator' => 0,
436      'operator' => 'field_politicas_areasimp_value_op',
437      'identifier' => 'field_politicas_areasimp_value',
438      'label' => 'Áreas de impacto',
439      'optional' => 1,
440      'remember' => 0,
441    ),
442    'case' => 0,
443    'id' => 'field_politicas_areasimp_value',
444    'table' => 'node_data_field_politicas_areasimp',
445    'field' => 'field_politicas_areasimp_value',
446    'relationship' => 'none',
447  ),
448  'field_politicas_causas_nid' => array(
449    'operator' => 'or',
450    'value' => array(),
451    'group' => '0',
452    'exposed' => TRUE,
453    'expose' => array(
454      'use_operator' => 0,
455      'operator' => 'field_politicas_causas_nid_op',
456      'identifier' => 'field_politicas_causas_nid',
457      'label' => 'Causas Críticas',
458      'optional' => 1,
459      'single' => 1,
460      'remember' => 0,
461      'reduce' => 0,
462    ),
463    'id' => 'field_politicas_causas_nid',
464    'table' => 'node_data_field_politicas_causas',
465    'field' => 'field_politicas_causas_nid',
466    'relationship' => 'none',
467    'reduce_duplicates' => 0,
468  ),
469  'status' => array(
470    'operator' => '=',
471    'value' => '1',
472    'group' => '0',
473    'exposed' => FALSE,
474    'expose' => array(
475      'operator' => FALSE,
476      'label' => '',
477    ),
478    'id' => 'status',
479    'table' => 'node',
480    'field' => 'status',
481    'relationship' => 'none',
482  ),
483  'timestamp' => array(
484    'operator' => 'between',
485    'value' => array(
486      'type' => 'date',
487      'value' => '',
488      'min' => '01-01-2013',
489      'max' => '31-12-2014',
490    ),
491    'group' => '0',
492    'exposed' => FALSE,
493    'expose' => array(
494      'operator' => FALSE,
495      'label' => '',
496    ),
497    'id' => 'timestamp',
498    'table' => 'node_revisions',
499    'field' => 'timestamp',
500    'relationship' => 'none',
501  ),
502));
503$handler->override_option('access', array(
504  'type' => 'none',
505));
506$handler->override_option('cache', array(
507  'type' => 'none',
508));
509$handler->override_option('empty', 'No se encontró ninguna política direccional');
510$handler->override_option('empty_format', '1');
511$handler->override_option('use_ajax', TRUE);
512$handler->override_option('use_pager', '1');
513$handler->override_option('style_plugin', 'table');
514
515
516
517  $views[$view->name] = $view;
518
519  //se agrega la vista de posibles politicas
520$view = new view;
521$view->name = 'politicas_direccionales';
522$view->description = '';
523$view->tag = '';
524$view->view_php = '';
525$view->base_table = 'node';
526$view->is_cacheable = FALSE;
527$view->api_version = 2;
528$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
529$handler = $view->new_display('default', 'Predefinidos', 'default');
530$handler->override_option('relationships', array(
531  'field_politicas_ente_nid' => array(
532    'label' => 'Ente Planificador',
533    'required' => 1,
534    'delta' => -1,
535    'id' => 'field_politicas_ente_nid',
536    'table' => 'node_data_field_politicas_ente',
537    'field' => 'field_politicas_ente_nid',
538    'relationship' => 'none',
539  ),
540));
541$handler->override_option('fields', array(
542  'body' => array(
543    'label' => 'Posible Política',
544    'alter' => array(
545      'alter_text' => 0,
546      'text' => '',
547      'make_link' => 0,
548      'path' => '',
549      'link_class' => '',
550      'alt' => '',
551      'prefix' => '',
552      'suffix' => '',
553      'target' => '',
554      'help' => '',
555      'trim' => 0,
556      'max_length' => '',
557      'word_boundary' => 1,
558      'ellipsis' => 1,
559      'html' => 0,
560      'strip_tags' => 1,
561    ),
562    'empty' => '',
563    'hide_empty' => 0,
564    'empty_zero' => 0,
565    'exclude' => 0,
566    'id' => 'body',
567    'table' => 'node_revisions',
568    'field' => 'body',
569    'relationship' => 'none',
570  ),
571  'title' => array(
572    'label' => 'Posible Política',
573    'alter' => array(
574      'alter_text' => 0,
575      'text' => '',
576      'make_link' => 0,
577      'path' => '',
578      'link_class' => '',
579      'alt' => '',
580      'prefix' => '',
581      'suffix' => '',
582      'target' => '',
583      'help' => '',
584      'trim' => 0,
585      'max_length' => '',
586      'word_boundary' => 1,
587      'ellipsis' => 1,
588      'html' => 0,
589      'strip_tags' => 1,
590    ),
591    'empty' => '',
592    'hide_empty' => 0,
593    'empty_zero' => 0,
594    'link_to_node' => 0,
595    'exclude' => 1,
596    'id' => 'title',
597    'table' => 'node',
598    'field' => 'title',
599    'relationship' => 'none',
600    'editablefields_allowed' => 0,
601    'editablefields_responder' => 'modal',
602    'editablefields_editable' => 'node',
603  ),
604  'field_politicas_areasimp_value' => array(
605    'label' => 'Áreas de impacto',
606    'alter' => array(
607      'alter_text' => 0,
608      'text' => '',
609      'make_link' => 0,
610      'path' => '',
611      'link_class' => '',
612      'alt' => '',
613      'prefix' => '',
614      'suffix' => '',
615      'target' => '',
616      'help' => '',
617      'trim' => 0,
618      'max_length' => '',
619      'word_boundary' => 1,
620      'ellipsis' => 1,
621      'html' => 0,
622      'strip_tags' => 0,
623    ),
624    'empty' => '',
625    'hide_empty' => 0,
626    'empty_zero' => 0,
627    'link_to_node' => 0,
628    'label_type' => 'widget',
629    'format' => 'plain',
630    'multiple' => array(
631      'group' => 1,
632      'multiple_number' => '',
633      'multiple_from' => '',
634      'multiple_reversed' => 0,
635    ),
636    'exclude' => 0,
637    'id' => 'field_politicas_areasimp_value',
638    'table' => 'node_data_field_politicas_areasimp',
639    'field' => 'field_politicas_areasimp_value',
640    'relationship' => 'none',
641  ),
642  'field_politicas_requerimientos_value' => array(
643    'label' => 'Requerimientos',
644    'alter' => array(
645      'alter_text' => 0,
646      'text' => '',
647      'make_link' => 0,
648      'path' => '',
649      'link_class' => '',
650      'alt' => '',
651      'prefix' => '',
652      'suffix' => '',
653      'target' => '',
654      'help' => '',
655      'trim' => 0,
656      'max_length' => '',
657      'word_boundary' => 1,
658      'ellipsis' => 1,
659      'html' => 0,
660      'strip_tags' => 0,
661    ),
662    'empty' => '',
663    'hide_empty' => 0,
664    'empty_zero' => 0,
665    'link_to_node' => 0,
666    'label_type' => 'widget',
667    'format' => 'plain',
668    'multiple' => array(
669      'group' => 1,
670      'multiple_number' => '',
671      'multiple_from' => '',
672      'multiple_reversed' => 0,
673    ),
674    'exclude' => 0,
675    'id' => 'field_politicas_requerimientos_value',
676    'table' => 'node_data_field_politicas_requerimientos',
677    'field' => 'field_politicas_requerimientos_value',
678    'relationship' => 'none',
679  ),
680  'field_politicas_causas_nid' => array(
681    'label' => 'Causas Críticas',
682    'alter' => array(
683      'alter_text' => 0,
684      'text' => '',
685      'make_link' => 0,
686      'path' => '',
687      'link_class' => '',
688      'alt' => '',
689      'prefix' => '',
690      'suffix' => '',
691      'target' => '',
692      'help' => '',
693      'trim' => 0,
694      'max_length' => '',
695      'word_boundary' => 1,
696      'ellipsis' => 1,
697      'html' => 0,
698      'strip_tags' => 0,
699    ),
700    'empty' => '',
701    'hide_empty' => 0,
702    'empty_zero' => 0,
703    'link_to_node' => 0,
704    'label_type' => 'widget',
705    'format' => 'plain',
706    'multiple' => array(
707      'group' => 1,
708      'multiple_number' => '',
709      'multiple_from' => '',
710      'multiple_reversed' => 0,
711    ),
712    'exclude' => 0,
713    'id' => 'field_politicas_causas_nid',
714    'table' => 'node_data_field_politicas_causas',
715    'field' => 'field_politicas_causas_nid',
716    'relationship' => 'none',
717  ),
718  'nid' => array(
719    'label' => 'Nid',
720    'alter' => array(
721      'alter_text' => 0,
722      'text' => '',
723      'make_link' => 0,
724      'path' => '',
725      'link_class' => '',
726      'alt' => '',
727      'prefix' => '',
728      'suffix' => '',
729      'target' => '',
730      'help' => '',
731      'trim' => 0,
732      'max_length' => '',
733      'word_boundary' => 1,
734      'ellipsis' => 1,
735      'html' => 0,
736      'strip_tags' => 0,
737    ),
738    'empty' => '',
739    'hide_empty' => 0,
740    'empty_zero' => 0,
741    'link_to_node' => 0,
742    'exclude' => 1,
743    'id' => 'nid',
744    'table' => 'node',
745    'field' => 'nid',
746    'relationship' => 'field_politicas_ente_nid',
747  ),
748  'nid_1' => array(
749    'label' => 'Nid',
750    'alter' => array(
751      'alter_text' => 0,
752      'text' => '',
753      'make_link' => 0,
754      'path' => '',
755      'link_class' => '',
756      'alt' => '',
757      'prefix' => '',
758      'suffix' => '',
759      'target' => '',
760      'help' => '',
761      'trim' => 0,
762      'max_length' => '',
763      'word_boundary' => 1,
764      'ellipsis' => 1,
765      'html' => 0,
766      'strip_tags' => 0,
767    ),
768    'empty' => '',
769    'hide_empty' => 0,
770    'empty_zero' => 0,
771    'link_to_node' => 0,
772    'exclude' => 1,
773    'id' => 'nid_1',
774    'table' => 'node',
775    'field' => 'nid',
776    'relationship' => 'none',
777  ),
778  'field_politicas_acciones_viab_value' => array(
779    'label' => 'Acciones para Construir viabilidad',
780    'alter' => array(
781      'alter_text' => 0,
782      'text' => '',
783      'make_link' => 0,
784      'path' => '',
785      'link_class' => '',
786      'alt' => '',
787      'prefix' => '',
788      'suffix' => '',
789      'target' => '',
790      'help' => '',
791      'trim' => 0,
792      'max_length' => '',
793      'word_boundary' => 1,
794      'ellipsis' => 1,
795      'html' => 0,
796      'strip_tags' => 0,
797    ),
798    'empty' => '',
799    'hide_empty' => 0,
800    'empty_zero' => 0,
801    'link_to_node' => 0,
802    'label_type' => 'widget',
803    'format' => 'default',
804    'multiple' => array(
805      'group' => 1,
806      'multiple_number' => '',
807      'multiple_from' => '',
808      'multiple_reversed' => 0,
809    ),
810    'exclude' => 0,
811    'id' => 'field_politicas_acciones_viab_value',
812    'table' => 'node_data_field_politicas_acciones_viab',
813    'field' => 'field_politicas_acciones_viab_value',
814    'relationship' => 'none',
815  ),
816));
817$handler->override_option('sorts', array(
818  'title' => array(
819    'order' => 'ASC',
820    'id' => 'title',
821    'table' => 'node',
822    'field' => 'title',
823    'relationship' => 'none',
824  ),
825));
826$handler->override_option('filters', array(
827  'type' => array(
828    'operator' => 'in',
829    'value' => array(
830      'politicas_direccionales' => 'politicas_direccionales',
831    ),
832    'group' => '0',
833    'exposed' => FALSE,
834    'expose' => array(
835      'operator' => FALSE,
836      'label' => '',
837    ),
838    'id' => 'type',
839    'table' => 'node',
840    'field' => 'type',
841    'relationship' => 'none',
842  ),
843  'body' => array(
844    'operator' => 'contains',
845    'value' => '',
846    'group' => '0',
847    'exposed' => TRUE,
848    'expose' => array(
849      'use_operator' => 0,
850      'operator' => 'body_op',
851      'identifier' => 'body',
852      'label' => 'Posible Política',
853      'optional' => 1,
854      'remember' => 0,
855    ),
856    'case' => 1,
857    'id' => 'body',
858    'table' => 'node_revisions',
859    'field' => 'body',
860    'relationship' => 'none',
861  ),
862  'field_politicas_areasimp_value' => array(
863    'operator' => 'contains',
864    'value' => '',
865    'group' => '0',
866    'exposed' => TRUE,
867    'expose' => array(
868      'use_operator' => 0,
869      'operator' => 'field_politicas_areasimp_value_op',
870      'identifier' => 'field_politicas_areasimp_value',
871      'label' => 'Áreas de impacto',
872      'optional' => 1,
873      'remember' => 0,
874    ),
875    'case' => 0,
876    'id' => 'field_politicas_areasimp_value',
877    'table' => 'node_data_field_politicas_areasimp',
878    'field' => 'field_politicas_areasimp_value',
879    'relationship' => 'none',
880  ),
881  'field_politicas_causas_nid' => array(
882    'operator' => 'or',
883    'value' => array(),
884    'group' => '0',
885    'exposed' => TRUE,
886    'expose' => array(
887      'use_operator' => 0,
888      'operator' => 'field_politicas_causas_nid_op',
889      'identifier' => 'field_politicas_causas_nid',
890      'label' => 'Causas Críticas',
891      'optional' => 1,
892      'single' => 1,
893      'remember' => 0,
894      'reduce' => 0,
895    ),
896    'id' => 'field_politicas_causas_nid',
897    'table' => 'node_data_field_politicas_causas',
898    'field' => 'field_politicas_causas_nid',
899    'relationship' => 'none',
900    'reduce_duplicates' => 0,
901  ),
902  'status' => array(
903    'operator' => '=',
904    'value' => '1',
905    'group' => '0',
906    'exposed' => FALSE,
907    'expose' => array(
908      'operator' => FALSE,
909      'label' => '',
910    ),
911    'id' => 'status',
912    'table' => 'node',
913    'field' => 'status',
914    'relationship' => 'none',
915  ),
916  'field_politicas_seleccionada_value' => array(
917    'operator' => '=',
918    'value' => 'SÍ',
919    'group' => '0',
920    'exposed' => FALSE,
921    'expose' => array(
922      'operator' => FALSE,
923      'label' => '',
924    ),
925    'case' => 1,
926    'id' => 'field_politicas_seleccionada_value',
927    'table' => 'node_data_field_politicas_seleccionada',
928    'field' => 'field_politicas_seleccionada_value',
929    'relationship' => 'none',
930  ),
931));
932$handler->override_option('access', array(
933  'type' => 'none',
934));
935$handler->override_option('cache', array(
936  'type' => 'none',
937));
938$handler->override_option('empty', 'No se encontró ninguna política direccional');
939$handler->override_option('empty_format', '1');
940$handler->override_option('use_ajax', TRUE);
941$handler->override_option('use_pager', '1');
942$handler->override_option('style_plugin', 'table');
943
944  $views[$view->name] = $view;
945  return $views;
946}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.