source: sipes/0.3-modules/proyectos_operativos/views/proyectos_operativos.views_default.inc @ 83b0a22

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

se agregaron los modulos

  • Propiedad mode establecida a 100755
File size: 5.0 KB
Línea 
1<?php
2  /**
3  * Sistema Integral de Planificación y Presupuesto (SIPP)
4  * @file proyectos_operativos.views_default.inc
5  * Drupal part Module to Sistema Integral de Planificación y Presupuesto (SIPP)
6  * Copyright 2014 Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana (CENDITEL)
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21  *
22  * @author Cenditel Merida - Msc. Juan Vizcarrondo
23  * @date 2015-02-06 // (a&#241;o-mes-dia)
24  * @version 0.2 // (0.1)
25  *
26  */
27
28/**
29 * Implementation of hook_views_default_views().
30 */
31function proyectos_operativos_views_default_views() {
32  $views = array();
33  $view = new view;
34  $view->name = 'Agregar_proyecto';
35  $view->description = '';
36  $view->tag = '';
37  $view->view_php = '';
38  $view->base_table = 'node';
39  $view->is_cacheable = FALSE;
40  $view->api_version = 2;
41  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
42  $handler = $view->new_display('default', 'Predefinidos', 'default');
43  $handler->override_option('fields', array(
44    'title' => array(
45      'label' => 'Ente Planificador',
46      'alter' => array(
47        'alter_text' => 0,
48        'text' => '',
49        'make_link' => 0,
50        'path' => '',
51        'link_class' => '',
52        'alt' => '',
53        'prefix' => '',
54        'suffix' => '',
55        'target' => '',
56        'help' => '',
57        'trim' => 0,
58        'max_length' => '',
59        'word_boundary' => 1,
60        'ellipsis' => 1,
61        'html' => 0,
62        'strip_tags' => 0,
63      ),
64      'empty' => '',
65      'hide_empty' => 0,
66      'empty_zero' => 0,
67      'link_to_node' => 0,
68      'exclude' => 0,
69      'id' => 'title',
70      'table' => 'node',
71      'field' => 'title',
72      'relationship' => 'none',
73    ),
74    'ente_planificador_agrega_links_proyectos' => array(
75      'label' => 'Operaciones Disponibles',
76      'alter' => array(
77        'alter_text' => 0,
78        'text' => '',
79        'make_link' => 0,
80        'path' => '',
81        'link_class' => '',
82        'alt' => '',
83        'prefix' => '',
84        'suffix' => '',
85        'target' => '',
86        'help' => '',
87        'trim' => 0,
88        'max_length' => '',
89        'word_boundary' => 1,
90        'ellipsis' => 1,
91        'html' => 0,
92        'strip_tags' => 0,
93      ),
94      'empty' => '',
95      'hide_empty' => 0,
96      'empty_zero' => 0,
97      'exclude' => 0,
98      'id' => 'ente_planificador_agrega_links_proyectos',
99      'table' => 'ente_planificador',
100      'field' => 'ente_planificador_agrega_links_proyectos',
101      'relationship' => 'none',
102    ),
103  ));
104  $handler->override_option('sorts', array(
105    'title' => array(
106      'order' => 'ASC',
107      'id' => 'title',
108      'table' => 'node',
109      'field' => 'title',
110      'relationship' => 'none',
111    ),
112  ));
113  $handler->override_option('filters', array(
114    'type' => array(
115      'operator' => 'in',
116      'value' => array(
117        'ente_planificador' => 'ente_planificador',
118      ),
119      'group' => '0',
120      'exposed' => FALSE,
121      'expose' => array(
122        'operator' => FALSE,
123        'label' => '',
124      ),
125      'id' => 'type',
126      'table' => 'node',
127      'field' => 'type',
128      'relationship' => 'none',
129    ),
130    'title' => array(
131      'operator' => 'contains',
132      'value' => '',
133      'group' => '0',
134      'exposed' => TRUE,
135      'expose' => array(
136        'use_operator' => 0,
137        'operator' => 'title_op',
138        'identifier' => 'title',
139        'label' => 'Ente Planificador',
140        'optional' => 1,
141        'remember' => 0,
142      ),
143      'case' => 1,
144      'id' => 'title',
145      'table' => 'node',
146      'field' => 'title',
147      'relationship' => 'none',
148    ),
149  ));
150  $handler->override_option('access', array(
151    'type' => 'none',
152  ));
153  $handler->override_option('cache', array(
154    'type' => 'none',
155  ));
156  $handler->override_option('title', 'Agregar un Proyecto Operativo a un ente planificador');
157  $handler->override_option('header', 'Seleccione el ente planificador al que desea agregar un Proyecto Operativo');
158  $handler->override_option('header_format', '1');
159  $handler->override_option('header_empty', 0);
160  $handler->override_option('use_ajax', TRUE);
161  $handler->override_option('use_pager', '1');
162  $handler->override_option('style_plugin', 'table');
163  $views[$view->name] = $view;
164  return $views;
165}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.