1 | $view = new view; |
---|
2 | $view->name = 'lista_entes_planificadores'; |
---|
3 | $view->description = 'Lista de los entes planificadores'; |
---|
4 | $view->tag = ''; |
---|
5 | $view->view_php = '\\x'; |
---|
6 | $view->base_table = 'node'; |
---|
7 | $view->is_cacheable = FALSE; |
---|
8 | $view->api_version = 2; |
---|
9 | $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
---|
10 | $handler = $view->new_display('default', 'lista_entes', 'default'); |
---|
11 | $handler->override_option('fields', array( |
---|
12 | 'title' => array( |
---|
13 | 'label' => 'Ente Planificador', |
---|
14 | 'alter' => array( |
---|
15 | 'alter_text' => 0, |
---|
16 | 'text' => '', |
---|
17 | 'make_link' => 0, |
---|
18 | 'path' => '', |
---|
19 | 'link_class' => '', |
---|
20 | 'alt' => '', |
---|
21 | 'prefix' => '', |
---|
22 | 'suffix' => '', |
---|
23 | 'target' => '', |
---|
24 | 'help' => '', |
---|
25 | 'trim' => 0, |
---|
26 | 'max_length' => '', |
---|
27 | 'word_boundary' => 1, |
---|
28 | 'ellipsis' => 1, |
---|
29 | 'html' => 0, |
---|
30 | 'strip_tags' => 0, |
---|
31 | ), |
---|
32 | 'empty' => '', |
---|
33 | 'hide_empty' => 0, |
---|
34 | 'empty_zero' => 0, |
---|
35 | 'link_to_node' => 0, |
---|
36 | 'exclude' => 0, |
---|
37 | 'id' => 'title', |
---|
38 | 'table' => 'node', |
---|
39 | 'field' => 'title', |
---|
40 | 'relationship' => 'none', |
---|
41 | ), |
---|
42 | 'nid' => array( |
---|
43 | 'label' => 'Nid del nodo', |
---|
44 | 'alter' => array( |
---|
45 | 'alter_text' => 0, |
---|
46 | 'text' => '', |
---|
47 | 'make_link' => 0, |
---|
48 | 'path' => '', |
---|
49 | 'link_class' => '', |
---|
50 | 'alt' => '', |
---|
51 | 'prefix' => '', |
---|
52 | 'suffix' => '', |
---|
53 | 'target' => '', |
---|
54 | 'help' => '', |
---|
55 | 'trim' => 0, |
---|
56 | 'max_length' => '', |
---|
57 | 'word_boundary' => 1, |
---|
58 | 'ellipsis' => 1, |
---|
59 | 'html' => 0, |
---|
60 | 'strip_tags' => 0, |
---|
61 | ), |
---|
62 | 'empty' => '', |
---|
63 | 'hide_empty' => 0, |
---|
64 | 'empty_zero' => 0, |
---|
65 | 'link_to_node' => 0, |
---|
66 | 'exclude' => 1, |
---|
67 | 'id' => 'nid', |
---|
68 | 'table' => 'node', |
---|
69 | 'field' => 'nid', |
---|
70 | 'relationship' => 'none', |
---|
71 | ), |
---|
72 | 'phpcode' => array( |
---|
73 | 'label' => 'Usuarios', |
---|
74 | 'alter' => array( |
---|
75 | 'alter_text' => 0, |
---|
76 | 'text' => '', |
---|
77 | 'make_link' => 0, |
---|
78 | 'path' => '', |
---|
79 | 'link_class' => '', |
---|
80 | 'alt' => '', |
---|
81 | 'prefix' => '', |
---|
82 | 'suffix' => '', |
---|
83 | 'target' => '', |
---|
84 | 'help' => '', |
---|
85 | 'trim' => 0, |
---|
86 | 'max_length' => '', |
---|
87 | 'word_boundary' => 1, |
---|
88 | 'ellipsis' => 1, |
---|
89 | 'html' => 0, |
---|
90 | 'strip_tags' => 0, |
---|
91 | ), |
---|
92 | 'empty' => '', |
---|
93 | 'hide_empty' => 0, |
---|
94 | 'empty_zero' => 0, |
---|
95 | 'value' => '<?php |
---|
96 | if ((user_access(\'edit all planificador\'))||(user_access(\'admin planificador\'))) { |
---|
97 | echo l(t(\'Agregar usuarios al actor planificador\'), \'admin/user/user/create/\' . $data->nid); |
---|
98 | } |
---|
99 | ?>', |
---|
100 | 'exclude' => 0, |
---|
101 | 'id' => 'phpcode', |
---|
102 | 'table' => 'customfield', |
---|
103 | 'field' => 'phpcode', |
---|
104 | 'relationship' => 'none', |
---|
105 | ), |
---|
106 | 'phpcode_1' => array( |
---|
107 | 'label' => 'Modificar', |
---|
108 | 'alter' => array( |
---|
109 | 'alter_text' => 0, |
---|
110 | 'text' => '', |
---|
111 | 'make_link' => 0, |
---|
112 | 'path' => '', |
---|
113 | 'link_class' => '', |
---|
114 | 'alt' => '', |
---|
115 | 'prefix' => '', |
---|
116 | 'suffix' => '', |
---|
117 | 'target' => '', |
---|
118 | 'help' => '', |
---|
119 | 'trim' => 0, |
---|
120 | 'max_length' => '', |
---|
121 | 'word_boundary' => 1, |
---|
122 | 'ellipsis' => 1, |
---|
123 | 'html' => 0, |
---|
124 | 'strip_tags' => 0, |
---|
125 | ), |
---|
126 | 'empty' => '', |
---|
127 | 'hide_empty' => 0, |
---|
128 | 'empty_zero' => 0, |
---|
129 | 'value' => '<?php |
---|
130 | if ((user_access(\'edit all planificador\')) || (user_access(\'admin planificador\'))) { |
---|
131 | echo l(t(\'Modificar\'), \'node/\' . $data->nid.\'/edit\', array(\'html\' => true, \'query\' => \'destination=administrar/entes_planificadores\')); |
---|
132 | } |
---|
133 | ?>', |
---|
134 | 'exclude' => 0, |
---|
135 | 'id' => 'phpcode_1', |
---|
136 | 'table' => 'customfield', |
---|
137 | 'field' => 'phpcode', |
---|
138 | 'relationship' => 'none', |
---|
139 | ), |
---|
140 | 'phpcode_2' => array( |
---|
141 | 'label' => 'Datos Basicos', |
---|
142 | 'alter' => array( |
---|
143 | 'alter_text' => 0, |
---|
144 | 'text' => '', |
---|
145 | 'make_link' => 0, |
---|
146 | 'path' => '', |
---|
147 | 'link_class' => '', |
---|
148 | 'alt' => '', |
---|
149 | 'prefix' => '', |
---|
150 | 'suffix' => '', |
---|
151 | 'target' => '', |
---|
152 | 'help' => '', |
---|
153 | 'trim' => 0, |
---|
154 | 'max_length' => '', |
---|
155 | 'word_boundary' => 1, |
---|
156 | 'ellipsis' => 1, |
---|
157 | 'html' => 0, |
---|
158 | 'strip_tags' => 0, |
---|
159 | ), |
---|
160 | 'empty' => '', |
---|
161 | 'hide_empty' => 0, |
---|
162 | 'empty_zero' => 0, |
---|
163 | 'value' => '<?php |
---|
164 | if ((user_access(\'edit all planificador\')) || (user_access(\'admin planificador\'))) { |
---|
165 | echo l(t(\'Editar datos del actor planificador\'), \'node/\' . $data->nid . \'/datos_basicos\', array(\'html\' => true, \'query\' => \'destination=administrar/entes_planificadores\')); |
---|
166 | } |
---|
167 | ?>', |
---|
168 | 'exclude' => 0, |
---|
169 | 'id' => 'phpcode_2', |
---|
170 | 'table' => 'customfield', |
---|
171 | 'field' => 'phpcode', |
---|
172 | 'relationship' => 'none', |
---|
173 | ), |
---|
174 | 'phpcode_3' => array( |
---|
175 | 'label' => 'Eliminar', |
---|
176 | 'alter' => array( |
---|
177 | 'alter_text' => 0, |
---|
178 | 'text' => '', |
---|
179 | 'make_link' => 0, |
---|
180 | 'path' => '', |
---|
181 | 'link_class' => '', |
---|
182 | 'alt' => '', |
---|
183 | 'prefix' => '', |
---|
184 | 'suffix' => '', |
---|
185 | 'target' => '', |
---|
186 | 'help' => '', |
---|
187 | 'trim' => 0, |
---|
188 | 'max_length' => '', |
---|
189 | 'word_boundary' => 1, |
---|
190 | 'ellipsis' => 1, |
---|
191 | 'html' => 0, |
---|
192 | 'strip_tags' => 0, |
---|
193 | ), |
---|
194 | 'empty' => '', |
---|
195 | 'hide_empty' => 0, |
---|
196 | 'empty_zero' => 0, |
---|
197 | 'value' => '<?php |
---|
198 | if ((user_access(\'edit all planificador\')) || (user_access(\'admin planificador\'))) { |
---|
199 | echo l(t(\'Eliminar\'), \'node/\' . $data->nid.\'/delete\', array(\'html\' => true, \'query\' => \'destination=administrar/entes_planificadores\')); |
---|
200 | } |
---|
201 | ?>', |
---|
202 | 'exclude' => 0, |
---|
203 | 'id' => 'phpcode_3', |
---|
204 | 'table' => 'customfield', |
---|
205 | 'field' => 'phpcode', |
---|
206 | 'relationship' => 'none', |
---|
207 | ), |
---|
208 | )); |
---|
209 | $handler->override_option('sorts', array( |
---|
210 | 'title' => array( |
---|
211 | 'order' => 'ASC', |
---|
212 | 'id' => 'title', |
---|
213 | 'table' => 'node', |
---|
214 | 'field' => 'title', |
---|
215 | 'relationship' => 'none', |
---|
216 | ), |
---|
217 | )); |
---|
218 | $handler->override_option('filters', array( |
---|
219 | 'type' => array( |
---|
220 | 'operator' => 'in', |
---|
221 | 'value' => array( |
---|
222 | 'ente_planificador' => 'ente_planificador', |
---|
223 | ), |
---|
224 | 'group' => '0', |
---|
225 | 'exposed' => FALSE, |
---|
226 | 'expose' => array( |
---|
227 | 'operator' => 'type_op', |
---|
228 | 'label' => 'Node: Type', |
---|
229 | 'use_operator' => FALSE, |
---|
230 | 'identifier' => 'type', |
---|
231 | 'remember' => FALSE, |
---|
232 | 'single' => TRUE, |
---|
233 | 'optional' => TRUE, |
---|
234 | 'reduce' => FALSE, |
---|
235 | ), |
---|
236 | 'id' => 'type', |
---|
237 | 'table' => 'node', |
---|
238 | 'field' => 'type', |
---|
239 | 'relationship' => 'none', |
---|
240 | ), |
---|
241 | 'sector' => array( |
---|
242 | 'operator' => 'or', |
---|
243 | 'value' => NULL, |
---|
244 | 'group' => '0', |
---|
245 | 'exposed' => TRUE, |
---|
246 | 'expose' => array( |
---|
247 | 'use_operator' => 0, |
---|
248 | 'operator' => 'sector_op', |
---|
249 | 'identifier' => 'sector', |
---|
250 | 'label' => 'Sector Social', |
---|
251 | 'optional' => 1, |
---|
252 | 'single' => 1, |
---|
253 | 'remember' => 0, |
---|
254 | 'reduce' => 0, |
---|
255 | ), |
---|
256 | 'id' => 'sector', |
---|
257 | 'table' => 'ente_planificador', |
---|
258 | 'field' => 'sector', |
---|
259 | 'relationship' => 'none', |
---|
260 | ), |
---|
261 | )); |
---|
262 | $handler->override_option('access', array( |
---|
263 | 'type' => 'none', |
---|
264 | )); |
---|
265 | $handler->override_option('cache', array( |
---|
266 | 'type' => 'none', |
---|
267 | )); |
---|
268 | $handler->override_option('title', 'Consultar lista de actores planificadores'); |
---|
269 | $handler->override_option('use_pager', '1'); |
---|
270 | $handler->override_option('style_plugin', 'table'); |
---|
271 | |
---|