1 | <?php |
---|
2 | /** |
---|
3 | * Implementation of hook_views_default_views(). |
---|
4 | */ |
---|
5 | function ente_planificador_sector_views_default_views() { |
---|
6 | $view = new view; |
---|
7 | $views = array(); |
---|
8 | $view->name = 'lista_de_los_actores_planificado'; |
---|
9 | $view->description = ''; |
---|
10 | $view->tag = ''; |
---|
11 | $view->view_php = '\\x5c78356337383335363333373338'; |
---|
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('fields', array( |
---|
18 | 'title' => array( |
---|
19 | 'label' => 'Ente Planificador', |
---|
20 | 'alter' => array( |
---|
21 | 'alter_text' => 0, |
---|
22 | 'text' => '', |
---|
23 | 'make_link' => 0, |
---|
24 | 'path' => '', |
---|
25 | 'link_class' => '', |
---|
26 | 'alt' => '', |
---|
27 | 'prefix' => '', |
---|
28 | 'suffix' => '', |
---|
29 | 'target' => '', |
---|
30 | 'help' => '', |
---|
31 | 'trim' => 0, |
---|
32 | 'max_length' => '', |
---|
33 | 'word_boundary' => 1, |
---|
34 | 'ellipsis' => 1, |
---|
35 | 'html' => 0, |
---|
36 | 'strip_tags' => 0, |
---|
37 | ), |
---|
38 | 'empty' => '', |
---|
39 | 'hide_empty' => 0, |
---|
40 | 'empty_zero' => 0, |
---|
41 | 'link_to_node' => 0, |
---|
42 | 'exclude' => 0, |
---|
43 | 'id' => 'title', |
---|
44 | 'table' => 'node', |
---|
45 | 'field' => 'title', |
---|
46 | 'relationship' => 'none', |
---|
47 | ), |
---|
48 | 'phpcode' => array( |
---|
49 | 'label' => 'Usuarios', |
---|
50 | 'alter' => array( |
---|
51 | 'alter_text' => 0, |
---|
52 | 'text' => '', |
---|
53 | 'make_link' => 0, |
---|
54 | 'path' => '', |
---|
55 | 'link_class' => '', |
---|
56 | 'alt' => '', |
---|
57 | 'prefix' => '', |
---|
58 | 'suffix' => '', |
---|
59 | 'target' => '', |
---|
60 | 'help' => '', |
---|
61 | 'trim' => 0, |
---|
62 | 'max_length' => '', |
---|
63 | 'word_boundary' => 1, |
---|
64 | 'ellipsis' => 1, |
---|
65 | 'html' => 0, |
---|
66 | 'strip_tags' => 0, |
---|
67 | ), |
---|
68 | 'empty' => '', |
---|
69 | 'hide_empty' => 0, |
---|
70 | 'empty_zero' => 0, |
---|
71 | 'value' => '<?php |
---|
72 | if ((user_access(\'edit all planificador\'))||(user_access(\'admin planificador\'))) { |
---|
73 | echo l(t(\'Agregar usuarios al actor planificador\'), \'admin/user/user/create/\' . $data->nid); |
---|
74 | } |
---|
75 | ?>', |
---|
76 | 'exclude' => 0, |
---|
77 | 'id' => 'phpcode', |
---|
78 | 'table' => 'customfield', |
---|
79 | 'field' => 'phpcode', |
---|
80 | 'relationship' => 'none', |
---|
81 | ), |
---|
82 | 'phpcode_1' => array( |
---|
83 | 'label' => 'Modificar', |
---|
84 | 'alter' => array( |
---|
85 | 'alter_text' => 0, |
---|
86 | 'text' => '', |
---|
87 | 'make_link' => 0, |
---|
88 | 'path' => '', |
---|
89 | 'link_class' => '', |
---|
90 | 'alt' => '', |
---|
91 | 'prefix' => '', |
---|
92 | 'suffix' => '', |
---|
93 | 'target' => '', |
---|
94 | 'help' => '', |
---|
95 | 'trim' => 0, |
---|
96 | 'max_length' => '', |
---|
97 | 'word_boundary' => 1, |
---|
98 | 'ellipsis' => 1, |
---|
99 | 'html' => 0, |
---|
100 | 'strip_tags' => 0, |
---|
101 | ), |
---|
102 | 'empty' => '', |
---|
103 | 'hide_empty' => 0, |
---|
104 | 'empty_zero' => 0, |
---|
105 | 'value' => '<?php |
---|
106 | if ((user_access(\'edit all planificador\')) || (user_access(\'admin planificador\'))) { |
---|
107 | echo l(t(\'Modificar\'), \'node/\' . $data->nid.\'/edit\', array(\'html\' => true, \'query\' => \'destination=administrar/entes_planificadores\')); |
---|
108 | } |
---|
109 | ?>', |
---|
110 | 'exclude' => 0, |
---|
111 | 'id' => 'phpcode_1', |
---|
112 | 'table' => 'customfield', |
---|
113 | 'field' => 'phpcode', |
---|
114 | 'relationship' => 'none', |
---|
115 | ), |
---|
116 | 'phpcode_2' => array( |
---|
117 | 'label' => 'Datos basicos', |
---|
118 | 'alter' => array( |
---|
119 | 'alter_text' => 0, |
---|
120 | 'text' => '', |
---|
121 | 'make_link' => 0, |
---|
122 | 'path' => '', |
---|
123 | 'link_class' => '', |
---|
124 | 'alt' => '', |
---|
125 | 'prefix' => '', |
---|
126 | 'suffix' => '', |
---|
127 | 'target' => '', |
---|
128 | 'help' => '', |
---|
129 | 'trim' => 0, |
---|
130 | 'max_length' => '', |
---|
131 | 'word_boundary' => 1, |
---|
132 | 'ellipsis' => 1, |
---|
133 | 'html' => 0, |
---|
134 | 'strip_tags' => 0, |
---|
135 | ), |
---|
136 | 'empty' => '', |
---|
137 | 'hide_empty' => 0, |
---|
138 | 'empty_zero' => 0, |
---|
139 | 'value' => '<?php |
---|
140 | if ((user_access(\'edit all planificador\')) || (user_access(\'admin planificador\'))) { |
---|
141 | echo l(t(\'Editar datos del actor planificador\'), \'node/\' . $data->nid . \'/datos_basicos\', array(\'html\' => true, \'query\' => \'destination=administrar/entes_planificadores\')); |
---|
142 | } |
---|
143 | ?>', |
---|
144 | 'exclude' => 0, |
---|
145 | 'id' => 'phpcode_2', |
---|
146 | 'table' => 'customfield', |
---|
147 | 'field' => 'phpcode', |
---|
148 | 'relationship' => 'none', |
---|
149 | ), |
---|
150 | 'phpcode_3' => array( |
---|
151 | 'label' => 'Eliminar', |
---|
152 | 'alter' => array( |
---|
153 | 'alter_text' => 0, |
---|
154 | 'text' => '', |
---|
155 | 'make_link' => 0, |
---|
156 | 'path' => '', |
---|
157 | 'link_class' => '', |
---|
158 | 'alt' => '', |
---|
159 | 'prefix' => '', |
---|
160 | 'suffix' => '', |
---|
161 | 'target' => '', |
---|
162 | 'help' => '', |
---|
163 | 'trim' => 0, |
---|
164 | 'max_length' => '', |
---|
165 | 'word_boundary' => 1, |
---|
166 | 'ellipsis' => 1, |
---|
167 | 'html' => 0, |
---|
168 | 'strip_tags' => 0, |
---|
169 | ), |
---|
170 | 'empty' => '', |
---|
171 | 'hide_empty' => 0, |
---|
172 | 'empty_zero' => 0, |
---|
173 | 'value' => '<?php |
---|
174 | if ((user_access(\'edit all planificador\')) || (user_access(\'admin planificador\'))) { |
---|
175 | echo l(t(\'Eliminar\'), \'node/\' . $data->nid.\'/delete\', array(\'html\' => true, \'query\' => \'destination=administrar/entes_planificadores\')); |
---|
176 | } |
---|
177 | ?>', |
---|
178 | 'exclude' => 0, |
---|
179 | 'id' => 'phpcode_3', |
---|
180 | 'table' => 'customfield', |
---|
181 | 'field' => 'phpcode', |
---|
182 | 'relationship' => 'none', |
---|
183 | ), |
---|
184 | )); |
---|
185 | $handler->override_option('filters', array( |
---|
186 | 'type' => array( |
---|
187 | 'operator' => 'in', |
---|
188 | 'value' => array( |
---|
189 | 'ente_planificador' => 'ente_planificador', |
---|
190 | ), |
---|
191 | 'group' => '0', |
---|
192 | 'exposed' => FALSE, |
---|
193 | 'expose' => array( |
---|
194 | 'operator' => FALSE, |
---|
195 | 'label' => '', |
---|
196 | ), |
---|
197 | 'id' => 'type', |
---|
198 | 'table' => 'node', |
---|
199 | 'field' => 'type', |
---|
200 | 'relationship' => 'none', |
---|
201 | ), |
---|
202 | 'ambito' => array( |
---|
203 | 'operator' => 'or', |
---|
204 | 'value' => NULL, |
---|
205 | 'group' => '0', |
---|
206 | 'exposed' => TRUE, |
---|
207 | 'expose' => array( |
---|
208 | 'use_operator' => 0, |
---|
209 | 'operator' => 'ambito_op', |
---|
210 | 'identifier' => 'ambito', |
---|
211 | 'label' => 'Ambito', |
---|
212 | 'optional' => 1, |
---|
213 | 'single' => 1, |
---|
214 | 'remember' => 0, |
---|
215 | 'reduce' => 0, |
---|
216 | ), |
---|
217 | 'id' => 'ambito', |
---|
218 | 'table' => 'ente_planificador', |
---|
219 | 'field' => 'ambito', |
---|
220 | 'relationship' => 'none', |
---|
221 | ), |
---|
222 | 'sector' => array( |
---|
223 | 'operator' => 'or', |
---|
224 | 'value' => NULL, |
---|
225 | 'group' => '0', |
---|
226 | 'exposed' => TRUE, |
---|
227 | 'expose' => array( |
---|
228 | 'use_operator' => 0, |
---|
229 | 'operator' => 'sector_op', |
---|
230 | 'identifier' => 'sector', |
---|
231 | 'label' => 'Sector Social', |
---|
232 | 'optional' => 1, |
---|
233 | 'single' => 1, |
---|
234 | 'remember' => 0, |
---|
235 | 'reduce' => 0, |
---|
236 | ), |
---|
237 | 'id' => 'sector', |
---|
238 | 'table' => 'ente_planificador', |
---|
239 | 'field' => 'sector', |
---|
240 | 'relationship' => 'none', |
---|
241 | ), |
---|
242 | 'organismo' => array( |
---|
243 | 'operator' => 'or', |
---|
244 | 'value' => NULL, |
---|
245 | 'group' => '0', |
---|
246 | 'exposed' => TRUE, |
---|
247 | 'expose' => array( |
---|
248 | 'use_operator' => 0, |
---|
249 | 'operator' => 'organismo_op', |
---|
250 | 'identifier' => 'organismo', |
---|
251 | 'label' => 'Organismo Publico', |
---|
252 | 'optional' => 1, |
---|
253 | 'single' => 1, |
---|
254 | 'remember' => 0, |
---|
255 | 'reduce' => 0, |
---|
256 | ), |
---|
257 | 'id' => 'organismo', |
---|
258 | 'table' => 'ente_planificador', |
---|
259 | 'field' => 'organismo', |
---|
260 | 'relationship' => 'none', |
---|
261 | ), |
---|
262 | )); |
---|
263 | $handler->override_option('sorts', array( |
---|
264 | 'title' => array( |
---|
265 | 'order' => 'ASC', |
---|
266 | 'id' => 'title', |
---|
267 | 'table' => 'node', |
---|
268 | 'field' => 'title', |
---|
269 | 'relationship' => 'none', |
---|
270 | ), |
---|
271 | )); |
---|
272 | $handler->override_option('access', array( |
---|
273 | 'type' => 'perm', |
---|
274 | 'perm' => 'ver planificador', |
---|
275 | )); |
---|
276 | $handler->override_option('cache', array( |
---|
277 | 'type' => 'none', |
---|
278 | )); |
---|
279 | $handler->override_option('title', 'Consultar lista de actores planificadores'); |
---|
280 | $handler->override_option('empty', 'No se encontraron resultados'); |
---|
281 | $handler->override_option('empty_format', '1'); |
---|
282 | $handler->override_option('use_pager', '1'); |
---|
283 | $handler->override_option('style_plugin', 'table'); |
---|
284 | $handler = $view->new_display('page', 'lista de los entes planificadores', 'page_1'); |
---|
285 | $handler->override_option('path', 'administrar/entes_planificadores/lista'); |
---|
286 | $handler->override_option('menu', array( |
---|
287 | 'type' => 'normal', |
---|
288 | 'title' => 'Consultar lista de actores planificadores', |
---|
289 | 'description' => 'Consultar lista de actores planificadores', |
---|
290 | 'weight' => '0', |
---|
291 | 'name' => 'navigation', |
---|
292 | )); |
---|
293 | $handler->override_option('tab_options', array( |
---|
294 | 'type' => 'none', |
---|
295 | 'title' => '', |
---|
296 | 'description' => '', |
---|
297 | 'weight' => 0, |
---|
298 | 'name' => 'navigation', |
---|
299 | )); |
---|
300 | $views[$view->name] = $view; |
---|
301 | //lista de los usuarios por entes planificadores |
---|
302 | $view = new view; |
---|
303 | $view->name = 'lista_de_usuarios'; |
---|
304 | $view->description = 'lista de los usuarios por entes planificadores'; |
---|
305 | $view->tag = ''; |
---|
306 | $view->view_php = '\\x5c78356337383335363333373338'; |
---|
307 | $view->base_table = 'node'; |
---|
308 | $view->is_cacheable = FALSE; |
---|
309 | $view->api_version = 2; |
---|
310 | $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
---|
311 | $handler = $view->new_display('default', 'Predefinidos', 'default'); |
---|
312 | $handler->override_option('fields', array( |
---|
313 | 'users_name' => array( |
---|
314 | 'label' => 'Nombre de Usuario', |
---|
315 | 'alter' => array( |
---|
316 | 'alter_text' => 0, |
---|
317 | 'text' => '', |
---|
318 | 'make_link' => 0, |
---|
319 | 'path' => '', |
---|
320 | 'link_class' => '', |
---|
321 | 'alt' => '', |
---|
322 | 'prefix' => '', |
---|
323 | 'suffix' => '', |
---|
324 | 'target' => '', |
---|
325 | 'help' => '', |
---|
326 | 'trim' => 0, |
---|
327 | 'max_length' => '', |
---|
328 | 'word_boundary' => 1, |
---|
329 | 'ellipsis' => 1, |
---|
330 | 'html' => 0, |
---|
331 | 'strip_tags' => 0, |
---|
332 | ), |
---|
333 | 'empty' => '', |
---|
334 | 'hide_empty' => 0, |
---|
335 | 'empty_zero' => 0, |
---|
336 | 'exclude' => 0, |
---|
337 | 'id' => 'users_name', |
---|
338 | 'table' => 'ente_user_planificador', |
---|
339 | 'field' => 'users_name', |
---|
340 | 'relationship' => 'none', |
---|
341 | ), |
---|
342 | 'nombres_usuarios' => array( |
---|
343 | 'label' => 'Nombres', |
---|
344 | 'alter' => array( |
---|
345 | 'alter_text' => 0, |
---|
346 | 'text' => '', |
---|
347 | 'make_link' => 0, |
---|
348 | 'path' => '', |
---|
349 | 'link_class' => '', |
---|
350 | 'alt' => '', |
---|
351 | 'prefix' => '', |
---|
352 | 'suffix' => '', |
---|
353 | 'target' => '', |
---|
354 | 'help' => '', |
---|
355 | 'trim' => 0, |
---|
356 | 'max_length' => '', |
---|
357 | 'word_boundary' => 1, |
---|
358 | 'ellipsis' => 1, |
---|
359 | 'html' => 0, |
---|
360 | 'strip_tags' => 0, |
---|
361 | ), |
---|
362 | 'empty' => '', |
---|
363 | 'hide_empty' => 0, |
---|
364 | 'empty_zero' => 0, |
---|
365 | 'exclude' => 0, |
---|
366 | 'id' => 'nombres_usuarios', |
---|
367 | 'table' => 'ente_user_planificador', |
---|
368 | 'field' => 'nombres_usuarios', |
---|
369 | 'relationship' => 'none', |
---|
370 | ), |
---|
371 | 'apellidos_ente' => array( |
---|
372 | 'label' => 'Apellidos', |
---|
373 | 'alter' => array( |
---|
374 | 'alter_text' => 0, |
---|
375 | 'text' => '', |
---|
376 | 'make_link' => 0, |
---|
377 | 'path' => '', |
---|
378 | 'link_class' => '', |
---|
379 | 'alt' => '', |
---|
380 | 'prefix' => '', |
---|
381 | 'suffix' => '', |
---|
382 | 'target' => '', |
---|
383 | 'help' => '', |
---|
384 | 'trim' => 0, |
---|
385 | 'max_length' => '', |
---|
386 | 'word_boundary' => 1, |
---|
387 | 'ellipsis' => 1, |
---|
388 | 'html' => 0, |
---|
389 | 'strip_tags' => 0, |
---|
390 | ), |
---|
391 | 'empty' => '', |
---|
392 | 'hide_empty' => 0, |
---|
393 | 'empty_zero' => 0, |
---|
394 | 'exclude' => 0, |
---|
395 | 'id' => 'apellidos_ente', |
---|
396 | 'table' => 'ente_user_planificador', |
---|
397 | 'field' => 'apellidos_ente', |
---|
398 | 'relationship' => 'none', |
---|
399 | ), |
---|
400 | 'cedula_ente' => array( |
---|
401 | 'label' => 'Cedula del Usuario', |
---|
402 | 'alter' => array( |
---|
403 | 'alter_text' => 0, |
---|
404 | 'text' => '', |
---|
405 | 'make_link' => 0, |
---|
406 | 'path' => '', |
---|
407 | 'link_class' => '', |
---|
408 | 'alt' => '', |
---|
409 | 'prefix' => '', |
---|
410 | 'suffix' => '', |
---|
411 | 'target' => '', |
---|
412 | 'help' => '', |
---|
413 | 'trim' => 0, |
---|
414 | 'max_length' => '', |
---|
415 | 'word_boundary' => 1, |
---|
416 | 'ellipsis' => 1, |
---|
417 | 'html' => 0, |
---|
418 | 'strip_tags' => 0, |
---|
419 | ), |
---|
420 | 'empty' => '', |
---|
421 | 'hide_empty' => 0, |
---|
422 | 'empty_zero' => 0, |
---|
423 | 'exclude' => 0, |
---|
424 | 'id' => 'cedula_ente', |
---|
425 | 'table' => 'ente_user_planificador', |
---|
426 | 'field' => 'cedula_ente', |
---|
427 | 'relationship' => 'none', |
---|
428 | ), |
---|
429 | 'nombres_ente' => array( |
---|
430 | 'label' => 'Ente Planificador', |
---|
431 | 'alter' => array( |
---|
432 | 'alter_text' => 1, |
---|
433 | 'text' => '', |
---|
434 | 'make_link' => 0, |
---|
435 | 'path' => 'user/[phpcode]', |
---|
436 | 'link_class' => '', |
---|
437 | 'alt' => '[nombres_ente] ', |
---|
438 | 'prefix' => '', |
---|
439 | 'suffix' => '', |
---|
440 | 'target' => '', |
---|
441 | 'help' => '', |
---|
442 | 'trim' => 0, |
---|
443 | 'max_length' => '', |
---|
444 | 'word_boundary' => 1, |
---|
445 | 'ellipsis' => 1, |
---|
446 | 'html' => 0, |
---|
447 | 'strip_tags' => 0, |
---|
448 | ), |
---|
449 | 'empty' => '', |
---|
450 | 'hide_empty' => 0, |
---|
451 | 'empty_zero' => 0, |
---|
452 | 'exclude' => 0, |
---|
453 | 'id' => 'nombres_ente', |
---|
454 | 'table' => 'ente_user_planificador', |
---|
455 | 'field' => 'nombres_ente', |
---|
456 | 'relationship' => 'none', |
---|
457 | ), |
---|
458 | 'phpcode' => array( |
---|
459 | 'label' => 'Consultar', |
---|
460 | 'alter' => array( |
---|
461 | 'alter_text' => 0, |
---|
462 | 'text' => '', |
---|
463 | 'make_link' => 0, |
---|
464 | 'path' => '', |
---|
465 | 'link_class' => '', |
---|
466 | 'alt' => '', |
---|
467 | 'prefix' => '', |
---|
468 | 'suffix' => '', |
---|
469 | 'target' => '', |
---|
470 | 'help' => '', |
---|
471 | 'trim' => 0, |
---|
472 | 'max_length' => '', |
---|
473 | 'word_boundary' => 1, |
---|
474 | 'ellipsis' => 1, |
---|
475 | 'html' => 0, |
---|
476 | 'strip_tags' => 0, |
---|
477 | ), |
---|
478 | 'empty' => '', |
---|
479 | 'hide_empty' => 0, |
---|
480 | 'empty_zero' => 0, |
---|
481 | 'value' => '<?php |
---|
482 | echo l(t("Consultar"), \'user/\' . $data->ente_user_planificador_usuario, array(\'html\' => true, \'query\' => \'destination=administrar_usuarios\')); |
---|
483 | ?>', |
---|
484 | 'exclude' => 0, |
---|
485 | 'id' => 'phpcode', |
---|
486 | 'table' => 'customfield', |
---|
487 | 'field' => 'phpcode', |
---|
488 | 'relationship' => 'none', |
---|
489 | ), |
---|
490 | 'phpcode_1' => array( |
---|
491 | 'label' => 'Modificar', |
---|
492 | 'alter' => array( |
---|
493 | 'alter_text' => 0, |
---|
494 | 'text' => '', |
---|
495 | 'make_link' => 0, |
---|
496 | 'path' => '', |
---|
497 | 'link_class' => '', |
---|
498 | 'alt' => '', |
---|
499 | 'prefix' => '', |
---|
500 | 'suffix' => '', |
---|
501 | 'target' => '', |
---|
502 | 'help' => '', |
---|
503 | 'trim' => 0, |
---|
504 | 'max_length' => '', |
---|
505 | 'word_boundary' => 1, |
---|
506 | 'ellipsis' => 1, |
---|
507 | 'html' => 0, |
---|
508 | 'strip_tags' => 0, |
---|
509 | ), |
---|
510 | 'empty' => '', |
---|
511 | 'hide_empty' => 0, |
---|
512 | 'empty_zero' => 0, |
---|
513 | 'value' => '<?php |
---|
514 | echo l(t("Modificar"), \'user/\' . $data->ente_user_planificador_usuario . "/edit", array(\'html\' => true, \'query\' => \'destination=administrar_usuarios\')); |
---|
515 | ?>', |
---|
516 | 'exclude' => 0, |
---|
517 | 'id' => 'phpcode_1', |
---|
518 | 'table' => 'customfield', |
---|
519 | 'field' => 'phpcode', |
---|
520 | 'relationship' => 'none', |
---|
521 | ), |
---|
522 | 'phpcode_2' => array( |
---|
523 | 'label' => 'Eliminar', |
---|
524 | 'alter' => array( |
---|
525 | 'alter_text' => 0, |
---|
526 | 'text' => '', |
---|
527 | 'make_link' => 0, |
---|
528 | 'path' => '', |
---|
529 | 'link_class' => '', |
---|
530 | 'alt' => '', |
---|
531 | 'prefix' => '', |
---|
532 | 'suffix' => '', |
---|
533 | 'target' => '', |
---|
534 | 'help' => '', |
---|
535 | 'trim' => 0, |
---|
536 | 'max_length' => '', |
---|
537 | 'word_boundary' => 1, |
---|
538 | 'ellipsis' => 1, |
---|
539 | 'html' => 0, |
---|
540 | 'strip_tags' => 0, |
---|
541 | ), |
---|
542 | 'empty' => '', |
---|
543 | 'hide_empty' => 0, |
---|
544 | 'empty_zero' => 0, |
---|
545 | 'value' => '<?php |
---|
546 | echo l(t("Eliminar"), \'user/\' . $data->ente_user_planificador_usuario . "/delete", array(\'html\' => true, \'query\' => \'destination=administrar_usuarios\')); |
---|
547 | ?>', |
---|
548 | 'exclude' => 0, |
---|
549 | 'id' => 'phpcode_2', |
---|
550 | 'table' => 'customfield', |
---|
551 | 'field' => 'phpcode', |
---|
552 | 'relationship' => 'none', |
---|
553 | ), |
---|
554 | )); |
---|
555 | $handler->override_option('filters', array( |
---|
556 | 'status' => array( |
---|
557 | 'operator' => '=', |
---|
558 | 'value' => '1', |
---|
559 | 'group' => '0', |
---|
560 | 'exposed' => FALSE, |
---|
561 | 'expose' => array( |
---|
562 | 'operator' => FALSE, |
---|
563 | 'label' => '', |
---|
564 | ), |
---|
565 | 'id' => 'status', |
---|
566 | 'table' => 'node', |
---|
567 | 'field' => 'status', |
---|
568 | 'relationship' => 'none', |
---|
569 | ), |
---|
570 | 'type' => array( |
---|
571 | 'operator' => 'in', |
---|
572 | 'value' => array( |
---|
573 | 'ente_planificador' => 'ente_planificador', |
---|
574 | ), |
---|
575 | 'group' => '0', |
---|
576 | 'exposed' => FALSE, |
---|
577 | 'expose' => array( |
---|
578 | 'operator' => FALSE, |
---|
579 | 'label' => '', |
---|
580 | ), |
---|
581 | 'id' => 'type', |
---|
582 | 'table' => 'node', |
---|
583 | 'field' => 'type', |
---|
584 | 'relationship' => 'none', |
---|
585 | ), |
---|
586 | 'organismo' => array( |
---|
587 | 'operator' => 'or', |
---|
588 | 'value' => NULL, |
---|
589 | 'group' => '0', |
---|
590 | 'exposed' => TRUE, |
---|
591 | 'expose' => array( |
---|
592 | 'use_operator' => 0, |
---|
593 | 'operator' => 'organismo_op', |
---|
594 | 'identifier' => 'organismo', |
---|
595 | 'label' => 'Organismo Publico', |
---|
596 | 'optional' => 1, |
---|
597 | 'single' => 1, |
---|
598 | 'remember' => 0, |
---|
599 | 'reduce' => 0, |
---|
600 | ), |
---|
601 | 'id' => 'organismo', |
---|
602 | 'table' => 'ente_planificador', |
---|
603 | 'field' => 'organismo', |
---|
604 | 'relationship' => 'none', |
---|
605 | ), |
---|
606 | 'sector' => array( |
---|
607 | 'operator' => 'or', |
---|
608 | 'value' => NULL, |
---|
609 | 'group' => '0', |
---|
610 | 'exposed' => TRUE, |
---|
611 | 'expose' => array( |
---|
612 | 'use_operator' => 0, |
---|
613 | 'operator' => 'sector_op', |
---|
614 | 'identifier' => 'sector', |
---|
615 | 'label' => 'Sector Social', |
---|
616 | 'optional' => 1, |
---|
617 | 'single' => 1, |
---|
618 | 'remember' => 0, |
---|
619 | 'reduce' => 0, |
---|
620 | ), |
---|
621 | 'id' => 'sector', |
---|
622 | 'table' => 'ente_planificador', |
---|
623 | 'field' => 'sector', |
---|
624 | 'relationship' => 'none', |
---|
625 | ), |
---|
626 | 'sub_sector' => array( |
---|
627 | 'operator' => 'or', |
---|
628 | 'value' => NULL, |
---|
629 | 'group' => '0', |
---|
630 | 'exposed' => TRUE, |
---|
631 | 'expose' => array( |
---|
632 | 'use_operator' => 0, |
---|
633 | 'operator' => 'sub_sector_op', |
---|
634 | 'identifier' => 'sub_sector', |
---|
635 | 'label' => '', |
---|
636 | 'optional' => 1, |
---|
637 | 'single' => 1, |
---|
638 | 'remember' => 0, |
---|
639 | 'reduce' => 0, |
---|
640 | ), |
---|
641 | 'id' => 'sub_sector', |
---|
642 | 'table' => 'ente_planificador', |
---|
643 | 'field' => 'sub_sector', |
---|
644 | 'relationship' => 'none', |
---|
645 | ), |
---|
646 | )); |
---|
647 | $handler->override_option('access', array( |
---|
648 | 'type' => 'perm', |
---|
649 | 'perm' => 'admin planificador', |
---|
650 | )); |
---|
651 | $handler->override_option('cache', array( |
---|
652 | 'type' => 'none', |
---|
653 | )); |
---|
654 | $handler->override_option('empty', 'No se encontraron usuarios'); |
---|
655 | $handler->override_option('empty_format', '1'); |
---|
656 | $handler->override_option('use_pager', '1'); |
---|
657 | $handler->override_option('distinct', 0); |
---|
658 | $handler->override_option('style_plugin', 'table'); |
---|
659 | $handler->override_option('style_options', array( |
---|
660 | 'grouping' => '', |
---|
661 | 'override' => 1, |
---|
662 | 'sticky' => 0, |
---|
663 | 'order' => 'asc', |
---|
664 | 'columns' => array( |
---|
665 | 'users_name' => 'users_name', |
---|
666 | 'nombres_usuarios' => 'nombres_usuarios', |
---|
667 | 'apellidos_ente' => 'apellidos_ente', |
---|
668 | 'cedula_ente' => 'cedula_ente', |
---|
669 | 'nombres_ente' => 'nombres_ente', |
---|
670 | 'phpcode' => 'phpcode', |
---|
671 | 'phpcode_1' => 'phpcode_1', |
---|
672 | 'phpcode_2' => 'phpcode_2', |
---|
673 | ), |
---|
674 | 'info' => array( |
---|
675 | 'users_name' => array( |
---|
676 | 'sortable' => 1, |
---|
677 | 'separator' => '', |
---|
678 | ), |
---|
679 | 'nombres_usuarios' => array( |
---|
680 | 'sortable' => 1, |
---|
681 | 'separator' => '', |
---|
682 | ), |
---|
683 | 'apellidos_ente' => array( |
---|
684 | 'sortable' => 1, |
---|
685 | 'separator' => '', |
---|
686 | ), |
---|
687 | 'cedula_ente' => array( |
---|
688 | 'sortable' => 1, |
---|
689 | 'separator' => '', |
---|
690 | ), |
---|
691 | 'nombres_ente' => array( |
---|
692 | 'sortable' => 1, |
---|
693 | 'separator' => '', |
---|
694 | ), |
---|
695 | 'phpcode' => array( |
---|
696 | 'separator' => '', |
---|
697 | ), |
---|
698 | 'phpcode_1' => array( |
---|
699 | 'separator' => '', |
---|
700 | ), |
---|
701 | 'phpcode_2' => array( |
---|
702 | 'separator' => '', |
---|
703 | ), |
---|
704 | ), |
---|
705 | 'default' => 'nombres_ente', |
---|
706 | )); |
---|
707 | $handler = $view->new_display('page', 'Página', 'page_1'); |
---|
708 | $handler->override_option('path', 'administrar_usuarios/lista'); |
---|
709 | $handler->override_option('menu', array( |
---|
710 | 'type' => 'none', |
---|
711 | 'title' => '', |
---|
712 | 'description' => '', |
---|
713 | 'weight' => 0, |
---|
714 | 'name' => 'navigation', |
---|
715 | )); |
---|
716 | $handler->override_option('tab_options', array( |
---|
717 | 'type' => 'none', |
---|
718 | 'title' => '', |
---|
719 | 'description' => '', |
---|
720 | 'weight' => 0, |
---|
721 | 'name' => 'navigation', |
---|
722 | )); |
---|
723 | |
---|
724 | $views[$view->name] = $view; |
---|
725 | return $views; |
---|
726 | } |
---|