1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Sistema Integral de Planificación y Presupuesto (SIPP) |
---|
5 | * @file acciones_centralizadas.install |
---|
6 | * Drupal part Module to Sistema Integral de Planificación y Presupuesto (SIPP) |
---|
7 | * Copyright 2013 Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana (CENDITEL) |
---|
8 | * |
---|
9 | * This program is free software; you can redistribute it and/or modify |
---|
10 | * it under the terms of the GNU General Public License as published by |
---|
11 | * the Free Software Foundation; either version 2 of the License, or |
---|
12 | * (at your option) any later version. |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with this program; if not, write to the Free Software |
---|
21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
22 | * |
---|
23 | * @author Cenditel Merida - Msc. Juan Vizcarrondo |
---|
24 | * @date 2013-02-02 // (año-mes-dia) |
---|
25 | * @version 0.1 // (0.1) |
---|
26 | * |
---|
27 | */ |
---|
28 | |
---|
29 | /* |
---|
30 | * Implementation of hook_install() |
---|
31 | */ |
---|
32 | function acciones_centralizadas_install() { |
---|
33 | // Notify content module when this module is uninstalled. |
---|
34 | drupal_install_schema('acciones_centralizadas'); |
---|
35 | drupal_load('module', 'content'); |
---|
36 | content_notify('install', 'acciones_centralizadas'); |
---|
37 | } |
---|
38 | |
---|
39 | /* |
---|
40 | * Implementation of hook_uninstall() |
---|
41 | */ |
---|
42 | function acciones_centralizadas_uninstall() { |
---|
43 | drupal_uninstall_schema('acciones_centralizadas'); |
---|
44 | // Notify content module when this module is uninstalled. |
---|
45 | include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc'); |
---|
46 | _acciones_centralizadas_install_type_remove_field(); |
---|
47 | content_notify('uninstall', 'acciones_centralizadas'); |
---|
48 | db_query("DELETE FROM {variable} WHERE name LIKE '%s'", 'acciones_centralizadas%'); |
---|
49 | } |
---|
50 | |
---|
51 | /* |
---|
52 | * Implementation of hook_enable() |
---|
53 | */ |
---|
54 | function acciones_centralizadas_enable() { |
---|
55 | // Notify content module when this module is uninstalled. |
---|
56 | drupal_load('module', 'content'); |
---|
57 | drupal_load('module', 'fieldgroup'); |
---|
58 | drupal_load('module', 'taxonomy'); |
---|
59 | content_notify('enable', 'acciones_centralizadas'); |
---|
60 | include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc'); |
---|
61 | _acciones_centralizadas_install_type_create_field(); |
---|
62 | } |
---|
63 | |
---|
64 | /* |
---|
65 | * Implementation of hook_disable() |
---|
66 | */ |
---|
67 | function acciones_centralizadas_disable() { |
---|
68 | drupal_load('module', 'content'); |
---|
69 | content_notify('disable', 'acciones_centralizadas'); |
---|
70 | } |
---|
71 | |
---|
72 | /* |
---|
73 | * Implementation of hook_schema |
---|
74 | */ |
---|
75 | function acciones_centralizadas_schema() { |
---|
76 | $schema['accion_centralizada'] = array( |
---|
77 | 'description' => 'Acciones centralizadas.', |
---|
78 | 'fields' => array( |
---|
79 | 'nid' => array( |
---|
80 | 'description' => 'nid del nodo.', |
---|
81 | 'type' => 'int', |
---|
82 | 'unsigned' => TRUE, |
---|
83 | 'not null' => TRUE, |
---|
84 | 'default' => 0, |
---|
85 | ), |
---|
86 | 'year' => array( |
---|
87 | 'description' => 'anho de la accion especifica.', |
---|
88 | 'type' => 'int', |
---|
89 | 'unsigned' => TRUE, |
---|
90 | 'not null' => TRUE, |
---|
91 | 'default' => 0, |
---|
92 | ), |
---|
93 | 'ente' => array( |
---|
94 | 'description' => 'Enlace del ente planificador.', |
---|
95 | 'type' => 'int', |
---|
96 | 'unsigned' => TRUE, |
---|
97 | 'not null' => TRUE, |
---|
98 | 'default' => 0, |
---|
99 | ), |
---|
100 | ), |
---|
101 | 'indexes' => array( |
---|
102 | 'nid' => array('nid'), |
---|
103 | 'year' => array('year'), |
---|
104 | 'ente' => array('ente'), |
---|
105 | ), |
---|
106 | 'primary key' => array('nid'), |
---|
107 | ); |
---|
108 | $schema['accion_reformular'] = array( |
---|
109 | 'description' => 'Acciones centralizadas.', |
---|
110 | 'fields' => array( |
---|
111 | 'id_ref' => array( |
---|
112 | 'description' => 'The id identifier to reformular.', |
---|
113 | 'type' => 'serial', |
---|
114 | 'not null' => TRUE, |
---|
115 | ), |
---|
116 | 'uid' => array( |
---|
117 | 'description' => 'uid del autor.', |
---|
118 | 'type' => 'int', |
---|
119 | 'unsigned' => TRUE, |
---|
120 | 'not null' => TRUE, |
---|
121 | 'default' => 0, |
---|
122 | ), |
---|
123 | 'nid' => array( |
---|
124 | 'description' => 'Enlace del nodo.', |
---|
125 | 'type' => 'int', |
---|
126 | 'unsigned' => TRUE, |
---|
127 | 'not null' => TRUE, |
---|
128 | 'default' => 0, |
---|
129 | ), |
---|
130 | 'estado' => array( |
---|
131 | 'description' => 'Estado de la reformulacion.', |
---|
132 | 'type' => 'int', |
---|
133 | 'unsigned' => TRUE, |
---|
134 | 'not null' => TRUE, |
---|
135 | 'default' => 0, |
---|
136 | ), |
---|
137 | 'estado_ant' => array( |
---|
138 | 'description' => 'Estado anterior de la reformulacion.', |
---|
139 | 'type' => 'int', |
---|
140 | 'unsigned' => TRUE, |
---|
141 | 'not null' => TRUE, |
---|
142 | 'default' => 0, |
---|
143 | ), |
---|
144 | 'date' => array( |
---|
145 | 'description' => 'Fecha de la reformulacion.', |
---|
146 | 'type' => 'int', |
---|
147 | 'unsigned' => TRUE, |
---|
148 | 'not null' => TRUE, |
---|
149 | 'default' => 0, |
---|
150 | ), |
---|
151 | 'variacion' => array( |
---|
152 | 'description' => 'Variacion de la reformulacion.', |
---|
153 | 'type' => 'numeric', |
---|
154 | 'size' => 'normal', |
---|
155 | 'not null' => TRUE, |
---|
156 | 'default' => 0, |
---|
157 | 'precision' => 32, |
---|
158 | 'scale' => 0, |
---|
159 | ), |
---|
160 | 'monto' => array( |
---|
161 | 'description' => 'Monto de la reformulacion.', |
---|
162 | 'type' => 'numeric', |
---|
163 | 'size' => 'normal', |
---|
164 | 'not null' => TRUE, |
---|
165 | 'default' => 0, |
---|
166 | 'precision' => 32, |
---|
167 | 'scale' => 0, |
---|
168 | ), |
---|
169 | ), |
---|
170 | 'indexes' => array( |
---|
171 | 'nid' => array('nid'), |
---|
172 | 'id_ref' => array('id_ref'), |
---|
173 | 'uid' => array('uid'), |
---|
174 | 'estado' => array('estado'), |
---|
175 | ), |
---|
176 | 'primary key' => array('id_ref'), |
---|
177 | ); |
---|
178 | $schema['accion_reformula'] = array( |
---|
179 | 'description' => 'Acciones centralizadas.', |
---|
180 | 'fields' => array( |
---|
181 | 'id_ref' => array( |
---|
182 | 'description' => 'id de la reformualcion.', |
---|
183 | 'type' => 'int', |
---|
184 | 'unsigned' => TRUE, |
---|
185 | 'not null' => TRUE, |
---|
186 | 'default' => 0, |
---|
187 | ), |
---|
188 | 'nid' => array( |
---|
189 | 'description' => 'nid del nodo.', |
---|
190 | 'type' => 'int', |
---|
191 | 'unsigned' => TRUE, |
---|
192 | 'not null' => TRUE, |
---|
193 | 'default' => 0, |
---|
194 | ), |
---|
195 | 'partida' => array( |
---|
196 | 'description' => 'Partida del la reformulacion.', |
---|
197 | 'type' => 'int', |
---|
198 | 'unsigned' => TRUE, |
---|
199 | 'not null' => TRUE, |
---|
200 | 'default' => 0, |
---|
201 | ), |
---|
202 | 'field_name' => array( |
---|
203 | 'type' => 'varchar', |
---|
204 | 'length' => 255, |
---|
205 | 'default' => '' |
---|
206 | ), |
---|
207 | 'value' => array( |
---|
208 | 'description' => 'Monto enero de la reformulacion.', |
---|
209 | 'type' => 'numeric', |
---|
210 | 'size' => 'normal', |
---|
211 | 'not null' => TRUE, |
---|
212 | 'default' => 0, |
---|
213 | 'precision' => 32, |
---|
214 | 'scale' => 0, |
---|
215 | ), |
---|
216 | 'value_1' => array( |
---|
217 | 'description' => 'Monto febrero de la reformulacion.', |
---|
218 | 'type' => 'numeric', |
---|
219 | 'size' => 'normal', |
---|
220 | 'not null' => TRUE, |
---|
221 | 'default' => 0, |
---|
222 | 'precision' => 32, |
---|
223 | 'scale' => 0, |
---|
224 | ), |
---|
225 | 'value_2' => array( |
---|
226 | 'description' => 'Monto marzo de la reformulacion.', |
---|
227 | 'type' => 'numeric', |
---|
228 | 'size' => 'normal', |
---|
229 | 'not null' => TRUE, |
---|
230 | 'default' => 0, |
---|
231 | 'precision' => 32, |
---|
232 | 'scale' => 0, |
---|
233 | ), |
---|
234 | 'value_3' => array( |
---|
235 | 'description' => 'Monto abril de la reformulacion.', |
---|
236 | 'type' => 'numeric', |
---|
237 | 'size' => 'normal', |
---|
238 | 'not null' => TRUE, |
---|
239 | 'default' => 0, |
---|
240 | 'precision' => 32, |
---|
241 | 'scale' => 0, |
---|
242 | ), |
---|
243 | 'value_4' => array( |
---|
244 | 'description' => 'Monto mayo de la reformulacion.', |
---|
245 | 'type' => 'numeric', |
---|
246 | 'size' => 'normal', |
---|
247 | 'not null' => TRUE, |
---|
248 | 'default' => 0, |
---|
249 | 'precision' => 32, |
---|
250 | 'scale' => 0, |
---|
251 | ), |
---|
252 | 'value_5' => array( |
---|
253 | 'description' => 'Monto junio de la reformulacion.', |
---|
254 | 'type' => 'numeric', |
---|
255 | 'size' => 'normal', |
---|
256 | 'not null' => TRUE, |
---|
257 | 'default' => 0, |
---|
258 | 'precision' => 32, |
---|
259 | 'scale' => 0, |
---|
260 | ), |
---|
261 | 'value_6' => array( |
---|
262 | 'description' => 'Monto julio de la reformulacion.', |
---|
263 | 'type' => 'numeric', |
---|
264 | 'size' => 'normal', |
---|
265 | 'not null' => TRUE, |
---|
266 | 'default' => 0, |
---|
267 | 'precision' => 32, |
---|
268 | 'scale' => 0, |
---|
269 | ), |
---|
270 | 'value_7' => array( |
---|
271 | 'description' => 'Monto agosto de la reformulacion.', |
---|
272 | 'type' => 'numeric', |
---|
273 | 'size' => 'normal', |
---|
274 | 'not null' => TRUE, |
---|
275 | 'default' => 0, |
---|
276 | 'precision' => 32, |
---|
277 | 'scale' => 0, |
---|
278 | ), |
---|
279 | 'value_8' => array( |
---|
280 | 'description' => 'Monto septiembre de la reformulacion.', |
---|
281 | 'type' => 'numeric', |
---|
282 | 'size' => 'normal', |
---|
283 | 'not null' => TRUE, |
---|
284 | 'default' => 0, |
---|
285 | 'precision' => 32, |
---|
286 | 'scale' => 0, |
---|
287 | ), |
---|
288 | 'value_9' => array( |
---|
289 | 'description' => 'Monto octubre de la reformulacion.', |
---|
290 | 'type' => 'numeric', |
---|
291 | 'size' => 'normal', |
---|
292 | 'not null' => TRUE, |
---|
293 | 'default' => 0, |
---|
294 | 'precision' => 32, |
---|
295 | 'scale' => 0, |
---|
296 | ), |
---|
297 | 'value_10' => array( |
---|
298 | 'description' => 'Monto noviembre de la reformulacion.', |
---|
299 | 'type' => 'numeric', |
---|
300 | 'size' => 'normal', |
---|
301 | 'not null' => TRUE, |
---|
302 | 'default' => 0, |
---|
303 | 'precision' => 32, |
---|
304 | 'scale' => 0, |
---|
305 | ), |
---|
306 | 'value_11' => array( |
---|
307 | 'description' => 'Monto diciembre de la reformulacion.', |
---|
308 | 'type' => 'numeric', |
---|
309 | 'size' => 'normal', |
---|
310 | 'not null' => TRUE, |
---|
311 | 'default' => 0, |
---|
312 | 'precision' => 32, |
---|
313 | 'scale' => 0, |
---|
314 | ), |
---|
315 | ), |
---|
316 | 'indexes' => array( |
---|
317 | 'nid' => array('nid'), |
---|
318 | 'id_ref' => array('id_ref'), |
---|
319 | 'partida' => array('partida'), |
---|
320 | ), |
---|
321 | ); |
---|
322 | $schema['accion_reformular_state'] = array( |
---|
323 | 'description' => 'Estados reformulacion.', |
---|
324 | 'fields' => array( |
---|
325 | 'nid' => array( |
---|
326 | 'description' => 'nid del nodo.', |
---|
327 | 'type' => 'int', |
---|
328 | 'unsigned' => TRUE, |
---|
329 | 'not null' => TRUE, |
---|
330 | 'default' => 0, |
---|
331 | ), |
---|
332 | 'estado' => array( |
---|
333 | 'description' => 'estado.', |
---|
334 | 'type' => 'int', |
---|
335 | 'unsigned' => TRUE, |
---|
336 | 'not null' => TRUE, |
---|
337 | 'default' => 0, |
---|
338 | ), |
---|
339 | 'estado_ant' => array( |
---|
340 | 'description' => 'estado anterior.', |
---|
341 | 'type' => 'int', |
---|
342 | 'unsigned' => TRUE, |
---|
343 | 'not null' => TRUE, |
---|
344 | 'default' => 0, |
---|
345 | ), |
---|
346 | 'date' => array( |
---|
347 | 'description' => 'Fecha.', |
---|
348 | 'type' => 'int', |
---|
349 | 'unsigned' => TRUE, |
---|
350 | 'not null' => TRUE, |
---|
351 | 'default' => 0, |
---|
352 | ), |
---|
353 | 'id_ref' => array( |
---|
354 | 'description' => 'Referencia a la reformulacion.', |
---|
355 | 'type' => 'int', |
---|
356 | 'unsigned' => TRUE, |
---|
357 | 'not null' => TRUE, |
---|
358 | 'default' => 0, |
---|
359 | ), |
---|
360 | 'uid' => array( |
---|
361 | 'description' => 'Referencia al autor.', |
---|
362 | 'type' => 'int', |
---|
363 | 'unsigned' => TRUE, |
---|
364 | 'not null' => TRUE, |
---|
365 | 'default' => 0, |
---|
366 | ), |
---|
367 | 'comentario' => array( |
---|
368 | 'type' => 'text', |
---|
369 | 'size' => 'big', |
---|
370 | 'not null' => TRUE, |
---|
371 | 'default' => '' |
---|
372 | ), |
---|
373 | ), |
---|
374 | 'indexes' => array( |
---|
375 | 'nid' => array('nid'), |
---|
376 | 'id_ref' => array('id_ref'), |
---|
377 | 'uid' => array('uid'), |
---|
378 | ), |
---|
379 | ); |
---|
380 | $schema['accion_seguimiento'] = array( |
---|
381 | 'description' => 'Seguimiento.', |
---|
382 | 'fields' => array( |
---|
383 | 'id_seg' => array( |
---|
384 | 'description' => 'The id identifier to seguimiento.', |
---|
385 | 'type' => 'serial', |
---|
386 | 'not null' => TRUE, |
---|
387 | ), |
---|
388 | 'nid' => array( |
---|
389 | 'description' => 'nid del nodo.', |
---|
390 | 'type' => 'int', |
---|
391 | 'unsigned' => TRUE, |
---|
392 | 'not null' => TRUE, |
---|
393 | 'default' => 0, |
---|
394 | ), |
---|
395 | 'estado' => array( |
---|
396 | 'description' => 'estado.', |
---|
397 | 'type' => 'int', |
---|
398 | 'unsigned' => TRUE, |
---|
399 | 'not null' => TRUE, |
---|
400 | 'default' => 0, |
---|
401 | ), |
---|
402 | 'campo' => array( |
---|
403 | 'type' => 'varchar', |
---|
404 | 'length' => 255, |
---|
405 | 'not null' => TRUE, |
---|
406 | 'default' => '' |
---|
407 | ), |
---|
408 | 'estado_ant' => array( |
---|
409 | 'description' => 'estado anterior.', |
---|
410 | 'type' => 'int', |
---|
411 | 'unsigned' => TRUE, |
---|
412 | 'not null' => TRUE, |
---|
413 | 'default' => 0, |
---|
414 | ), |
---|
415 | 'fecha' => array( |
---|
416 | 'description' => 'Fecha.', |
---|
417 | 'type' => 'int', |
---|
418 | 'unsigned' => TRUE, |
---|
419 | 'not null' => TRUE, |
---|
420 | 'default' => 0, |
---|
421 | ), |
---|
422 | 'mes' => array( |
---|
423 | 'description' => 'Referencia a la reformulacion.', |
---|
424 | 'type' => 'int', |
---|
425 | 'unsigned' => TRUE, |
---|
426 | 'not null' => TRUE, |
---|
427 | 'default' => 0, |
---|
428 | ), |
---|
429 | 'uid' => array( |
---|
430 | 'description' => 'Referencia al autor.', |
---|
431 | 'type' => 'int', |
---|
432 | 'unsigned' => TRUE, |
---|
433 | 'not null' => TRUE, |
---|
434 | 'default' => 0, |
---|
435 | ), |
---|
436 | 'comentario' => array( |
---|
437 | 'type' => 'text', |
---|
438 | 'size' => 'big', |
---|
439 | 'not null' => TRUE, |
---|
440 | 'default' => '' |
---|
441 | ), |
---|
442 | ), |
---|
443 | 'indexes' => array( |
---|
444 | 'nid' => array('nid'), |
---|
445 | 'id_seg' => array('id_seg'), |
---|
446 | 'uid' => array('uid'), |
---|
447 | 'mes' => array('mes'), |
---|
448 | 'estado' => array('estado'), |
---|
449 | ), |
---|
450 | 'primary key' => array('id_seg'), |
---|
451 | ); |
---|
452 | $schema['accion_segu_partida'] = array( |
---|
453 | 'description' => 'seguimiento partidas.', |
---|
454 | 'fields' => array( |
---|
455 | 'id_seg' => array( |
---|
456 | 'description' => 'id del seguimiento.', |
---|
457 | 'type' => 'int', |
---|
458 | 'unsigned' => TRUE, |
---|
459 | 'not null' => TRUE, |
---|
460 | 'default' => 0, |
---|
461 | ), |
---|
462 | 'nid' => array( |
---|
463 | 'description' => 'nid del nodo.', |
---|
464 | 'type' => 'int', |
---|
465 | 'unsigned' => TRUE, |
---|
466 | 'not null' => TRUE, |
---|
467 | 'default' => 0, |
---|
468 | ), |
---|
469 | 'partida' => array( |
---|
470 | 'description' => 'Partida del la reformulacion.', |
---|
471 | 'type' => 'int', |
---|
472 | 'unsigned' => TRUE, |
---|
473 | 'not null' => TRUE, |
---|
474 | 'default' => 0, |
---|
475 | ), |
---|
476 | 'comprometido' => array( |
---|
477 | 'description' => 'Comprometido.', |
---|
478 | 'type' => 'numeric', |
---|
479 | 'size' => 'normal', |
---|
480 | 'not null' => TRUE, |
---|
481 | 'default' => 0, |
---|
482 | 'precision' => 32, |
---|
483 | 'scale' => 0, |
---|
484 | ), |
---|
485 | 'causado' => array( |
---|
486 | 'description' => 'Causado.', |
---|
487 | 'type' => 'numeric', |
---|
488 | 'size' => 'normal', |
---|
489 | 'not null' => TRUE, |
---|
490 | 'default' => 0, |
---|
491 | 'precision' => 32, |
---|
492 | 'scale' => 0, |
---|
493 | ), |
---|
494 | 'pagado' => array( |
---|
495 | 'description' => 'Pagado.', |
---|
496 | 'type' => 'numeric', |
---|
497 | 'size' => 'normal', |
---|
498 | 'not null' => TRUE, |
---|
499 | 'default' => 0, |
---|
500 | 'precision' => 32, |
---|
501 | 'scale' => 0, |
---|
502 | ), |
---|
503 | ), |
---|
504 | 'indexes' => array( |
---|
505 | 'nid' => array('nid'), |
---|
506 | 'id_seg' => array('id_seg'), |
---|
507 | 'partida' => array('partida'), |
---|
508 | ), |
---|
509 | ); |
---|
510 | $schema['accion_seguimiento_state'] = array( |
---|
511 | 'description' => 'Estado del seguimiento.', |
---|
512 | 'fields' => array( |
---|
513 | 'nid' => array( |
---|
514 | 'description' => 'nid del nodo.', |
---|
515 | 'type' => 'int', |
---|
516 | 'unsigned' => TRUE, |
---|
517 | 'not null' => TRUE, |
---|
518 | 'default' => 0, |
---|
519 | ), |
---|
520 | 'estado' => array( |
---|
521 | 'description' => 'estado.', |
---|
522 | 'type' => 'int', |
---|
523 | 'unsigned' => TRUE, |
---|
524 | 'not null' => TRUE, |
---|
525 | 'default' => 0, |
---|
526 | ), |
---|
527 | 'estado_ant' => array( |
---|
528 | 'description' => 'estado anterior.', |
---|
529 | 'type' => 'int', |
---|
530 | 'unsigned' => TRUE, |
---|
531 | 'not null' => TRUE, |
---|
532 | 'default' => 0, |
---|
533 | ), |
---|
534 | 'date' => array( |
---|
535 | 'description' => 'Fecha.', |
---|
536 | 'type' => 'int', |
---|
537 | 'unsigned' => TRUE, |
---|
538 | 'not null' => TRUE, |
---|
539 | 'default' => 0, |
---|
540 | ), |
---|
541 | 'id_seg' => array( |
---|
542 | 'description' => 'Referencia a la reformulacion.', |
---|
543 | 'type' => 'int', |
---|
544 | 'unsigned' => TRUE, |
---|
545 | 'not null' => TRUE, |
---|
546 | 'default' => 0, |
---|
547 | ), |
---|
548 | 'uid' => array( |
---|
549 | 'description' => 'Referencia al autor.', |
---|
550 | 'type' => 'int', |
---|
551 | 'unsigned' => TRUE, |
---|
552 | 'not null' => TRUE, |
---|
553 | 'default' => 0, |
---|
554 | ), |
---|
555 | 'comentario' => array( |
---|
556 | 'type' => 'text', |
---|
557 | 'size' => 'big', |
---|
558 | 'not null' => TRUE, |
---|
559 | 'default' => '' |
---|
560 | ), |
---|
561 | ), |
---|
562 | 'indexes' => array( |
---|
563 | 'nid' => array('nid'), |
---|
564 | 'id_seg' => array('id_seg'), |
---|
565 | 'uid' => array('uid'), |
---|
566 | ), |
---|
567 | ); |
---|
568 | return $schema; |
---|
569 | } |
---|
570 | |
---|
571 | /* |
---|
572 | * _acciones_centralizadas_install_type_remove_field |
---|
573 | * Eliminar los tipos de contenidos necesarios para el funcionamiento del modulo |
---|
574 | */ |
---|
575 | function _acciones_centralizadas_install_type_remove_field() { |
---|
576 | // Load fields. |
---|
577 | $acciones_centralizadas_fields = _acciones_centralizadas_load_fields(); |
---|
578 | $groups = array(); |
---|
579 | $grupos = fieldgroup_groups('accion_centralizada'); |
---|
580 | $remove_group = FALSE; |
---|
581 | if (count($acciones_centralizadas_fields['groups'])) { |
---|
582 | foreach ($acciones_centralizadas_fields['groups'] as $acciones_centralizadas_inserts) { |
---|
583 | if (isset($grupos[$acciones_centralizadas_inserts['group_name']])) { |
---|
584 | $remove_group = TRUE; |
---|
585 | fieldgroup_delete($acciones_centralizadas_inserts['type_name'], $acciones_centralizadas_inserts['group_name']); |
---|
586 | drupal_set_message(t("Removed group %typefield in content type %typecontent", array('%typefield' => $acciones_centralizadas_inserts['label'], '%typecontent' => $acciones_centralizadas_inserts['type_name']))); |
---|
587 | } |
---|
588 | } |
---|
589 | } |
---|
590 | if ($remove_group) { |
---|
591 | // Reset the static variable in fieldgroup_groups() with new data. |
---|
592 | fieldgroup_groups('', FALSE, TRUE); |
---|
593 | } |
---|
594 | $remove_field = FALSE; |
---|
595 | if (count($acciones_centralizadas_fields['fields'])) { |
---|
596 | foreach ($acciones_centralizadas_fields['fields'] as $acciones_centralizadas_inserts) { |
---|
597 | $instances = content_field_instance_read(array( |
---|
598 | 'field_name' => $acciones_centralizadas_inserts['field_name'], |
---|
599 | 'type_name' => $acciones_centralizadas_inserts['type_name'] |
---|
600 | )); |
---|
601 | if (count($instances)) { |
---|
602 | $remove_field = TRUE; |
---|
603 | // Only add the field if it doesn't exist. Don't overwrite any changes. |
---|
604 | content_field_instance_delete($acciones_centralizadas_inserts['field_name'], $acciones_centralizadas_inserts['type_name']); |
---|
605 | drupal_set_message(t("Removed field %typefield in content type %typecontent", array('%typefield' => $acciones_centralizadas_inserts['label'], '%typecontent' => $acciones_centralizadas_inserts['type_name']))); |
---|
606 | } |
---|
607 | } |
---|
608 | } |
---|
609 | if ($remove_field) { |
---|
610 | content_clear_type_cache(TRUE); |
---|
611 | menu_rebuild(); |
---|
612 | } |
---|
613 | } |
---|
614 | |
---|
615 | |
---|
616 | /* |
---|
617 | * _acciones_centralizadas_install_type_create_field |
---|
618 | * Crear los tipos de contenidos necesarios para el funcionamiento del modulo |
---|
619 | */ |
---|
620 | function _acciones_centralizadas_install_type_create_field() { |
---|
621 | // Load fields. |
---|
622 | $acciones_centralizadas_fields = _acciones_centralizadas_load_fields(); |
---|
623 | $groups = array(); |
---|
624 | $grupos = fieldgroup_groups('accion_centralizada'); |
---|
625 | $create_group = FALSE; |
---|
626 | if (count($acciones_centralizadas_fields['groups'])) { |
---|
627 | foreach ($acciones_centralizadas_fields['groups'] as $acciones_centralizadas_inserts) { |
---|
628 | if (!isset($grupos[$acciones_centralizadas_inserts['group_name']])) { |
---|
629 | $create_group = TRUE; |
---|
630 | fieldgroup_save_group($acciones_centralizadas_inserts['type_name'], (array) $acciones_centralizadas_inserts); |
---|
631 | drupal_set_message(t("Saved group %typefield in content type %typecontent", array('%typefield' => $acciones_centralizadas_inserts['label'], '%typecontent' => $acciones_centralizadas_inserts['type_name']))); |
---|
632 | } |
---|
633 | } |
---|
634 | } |
---|
635 | if ($create_group) { |
---|
636 | // Reset the static variable in fieldgroup_groups() with new data. |
---|
637 | fieldgroup_groups('', FALSE, TRUE); |
---|
638 | } |
---|
639 | $create_field = FALSE; |
---|
640 | if (count($acciones_centralizadas_fields['fields'])) { |
---|
641 | foreach ($acciones_centralizadas_fields['fields'] as $acciones_centralizadas_inserts) { |
---|
642 | $instances = content_field_instance_read(array( |
---|
643 | 'field_name' => $acciones_centralizadas_inserts['field_name'], |
---|
644 | 'type_name' => $acciones_centralizadas_inserts['type_name'] |
---|
645 | )); |
---|
646 | if (count($instances) < 1) { |
---|
647 | $create_field = TRUE; |
---|
648 | // Only add the field if it doesn't exist. Don't overwrite any changes. |
---|
649 | $field_create = content_field_instance_create($acciones_centralizadas_inserts, FALSE); |
---|
650 | drupal_set_message(t("Saved field %typefield in content type %typecontent", array('%typefield' => $acciones_centralizadas_inserts['label'], '%typecontent' => $acciones_centralizadas_inserts['type_name']))); |
---|
651 | fieldgroup_update_fields($field_create); |
---|
652 | } |
---|
653 | } |
---|
654 | } |
---|
655 | if ($create_field) { |
---|
656 | content_clear_type_cache(TRUE); |
---|
657 | menu_rebuild(); |
---|
658 | } |
---|
659 | } |
---|
660 | |
---|
661 | /* |
---|
662 | * _acciones_centralizadas_load_fields |
---|
663 | * Campos |
---|
664 | */ |
---|
665 | function _acciones_centralizadas_load_fields() { |
---|
666 | $content = array(); |
---|
667 | $content['groups'] = array(); |
---|
668 | $content['groups'][] = array ( |
---|
669 | 'label' => 'AC 1 - Dirección y Coordinación de los trabajadores', |
---|
670 | 'type_name' => 'accion_centralizada', |
---|
671 | 'group_type' => 'standard', |
---|
672 | 'settings' => |
---|
673 | array ( |
---|
674 | 'form' => |
---|
675 | array ( |
---|
676 | 'style' => 'fieldset', |
---|
677 | 'description' => '', |
---|
678 | ), |
---|
679 | 'display' => |
---|
680 | array ( |
---|
681 | 'description' => '', |
---|
682 | 'teaser' => |
---|
683 | array ( |
---|
684 | 'format' => 'fieldset', |
---|
685 | 'exclude' => 0, |
---|
686 | ), |
---|
687 | 'full' => |
---|
688 | array ( |
---|
689 | 'format' => 'hidden', |
---|
690 | 'exclude' => 0, |
---|
691 | ), |
---|
692 | 4 => |
---|
693 | array ( |
---|
694 | 'format' => 'fieldset', |
---|
695 | 'exclude' => 0, |
---|
696 | ), |
---|
697 | 'modal' => |
---|
698 | array ( |
---|
699 | 'format' => 'fieldset', |
---|
700 | 'exclude' => 0, |
---|
701 | ), |
---|
702 | 'inline' => |
---|
703 | array ( |
---|
704 | 'format' => 'fieldset', |
---|
705 | 'exclude' => 0, |
---|
706 | ), |
---|
707 | 'token' => |
---|
708 | array ( |
---|
709 | 'format' => 'fieldset', |
---|
710 | 'exclude' => 0, |
---|
711 | ), |
---|
712 | 'label' => 'above', |
---|
713 | ), |
---|
714 | ), |
---|
715 | 'weight' => '33', |
---|
716 | 'group_name' => 'group_ac_ac1', |
---|
717 | ); |
---|
718 | |
---|
719 | $content['groups'][] = array ( |
---|
720 | 'label' => 'AC 2 - Gestión administrativa', |
---|
721 | 'type_name' => 'accion_centralizada', |
---|
722 | 'group_type' => 'standard', |
---|
723 | 'settings' => |
---|
724 | array ( |
---|
725 | 'form' => |
---|
726 | array ( |
---|
727 | 'style' => 'fieldset', |
---|
728 | 'description' => '', |
---|
729 | ), |
---|
730 | 'display' => |
---|
731 | array ( |
---|
732 | 'description' => '', |
---|
733 | 'teaser' => |
---|
734 | array ( |
---|
735 | 'format' => 'fieldset', |
---|
736 | 'exclude' => 0, |
---|
737 | ), |
---|
738 | 'full' => |
---|
739 | array ( |
---|
740 | 'format' => 'hidden', |
---|
741 | 'exclude' => 0, |
---|
742 | ), |
---|
743 | 4 => |
---|
744 | array ( |
---|
745 | 'format' => 'fieldset', |
---|
746 | 'exclude' => 0, |
---|
747 | ), |
---|
748 | 'modal' => |
---|
749 | array ( |
---|
750 | 'format' => 'fieldset', |
---|
751 | 'exclude' => 0, |
---|
752 | ), |
---|
753 | 'inline' => |
---|
754 | array ( |
---|
755 | 'format' => 'fieldset', |
---|
756 | 'exclude' => 0, |
---|
757 | ), |
---|
758 | 'token' => |
---|
759 | array ( |
---|
760 | 'format' => 'fieldset', |
---|
761 | 'exclude' => 0, |
---|
762 | ), |
---|
763 | 'label' => 'above', |
---|
764 | ), |
---|
765 | ), |
---|
766 | 'weight' => '37', |
---|
767 | 'group_name' => 'group_ac_ac2', |
---|
768 | ); |
---|
769 | |
---|
770 | $content['groups'][] = array ( |
---|
771 | 'label' => 'AC 3 - Previsión y protección social\', que contiene las Acciones EspecÃficas', |
---|
772 | 'type_name' => 'accion_centralizada', |
---|
773 | 'group_type' => 'standard', |
---|
774 | 'settings' => |
---|
775 | array ( |
---|
776 | 'form' => |
---|
777 | array ( |
---|
778 | 'style' => 'fieldset', |
---|
779 | 'description' => '', |
---|
780 | ), |
---|
781 | 'display' => |
---|
782 | array ( |
---|
783 | 'description' => '', |
---|
784 | 'teaser' => |
---|
785 | array ( |
---|
786 | 'format' => 'fieldset', |
---|
787 | 'exclude' => 0, |
---|
788 | ), |
---|
789 | 'full' => |
---|
790 | array ( |
---|
791 | 'format' => 'hidden', |
---|
792 | 'exclude' => 0, |
---|
793 | ), |
---|
794 | 4 => |
---|
795 | array ( |
---|
796 | 'format' => 'fieldset', |
---|
797 | 'exclude' => 0, |
---|
798 | ), |
---|
799 | 'modal' => |
---|
800 | array ( |
---|
801 | 'format' => 'fieldset', |
---|
802 | 'exclude' => 0, |
---|
803 | ), |
---|
804 | 'inline' => |
---|
805 | array ( |
---|
806 | 'format' => 'fieldset', |
---|
807 | 'exclude' => 0, |
---|
808 | ), |
---|
809 | 'token' => |
---|
810 | array ( |
---|
811 | 'format' => 'fieldset', |
---|
812 | 'exclude' => 0, |
---|
813 | ), |
---|
814 | 'label' => 'above', |
---|
815 | ), |
---|
816 | ), |
---|
817 | 'weight' => '42', |
---|
818 | 'group_name' => 'group_ac_ac3', |
---|
819 | ); |
---|
820 | $content['groups'][] = array ( |
---|
821 | 'label' => 'AC 7 - Protección y atención integral a las familias y personas en los refugios en caso de emergencias o desastres', |
---|
822 | 'type_name' => 'accion_centralizada', |
---|
823 | 'group_type' => 'standard', |
---|
824 | 'settings' => |
---|
825 | array ( |
---|
826 | 'form' => |
---|
827 | array ( |
---|
828 | 'style' => 'fieldset', |
---|
829 | 'description' => '', |
---|
830 | ), |
---|
831 | 'display' => |
---|
832 | array ( |
---|
833 | 'description' => '', |
---|
834 | 'teaser' => |
---|
835 | array ( |
---|
836 | 'format' => 'fieldset', |
---|
837 | 'exclude' => 0, |
---|
838 | ), |
---|
839 | 'full' => |
---|
840 | array ( |
---|
841 | 'format' => 'hidden', |
---|
842 | 'exclude' => 0, |
---|
843 | ), |
---|
844 | 4 => |
---|
845 | array ( |
---|
846 | 'format' => 'fieldset', |
---|
847 | 'exclude' => 0, |
---|
848 | ), |
---|
849 | 'modal' => |
---|
850 | array ( |
---|
851 | 'format' => 'fieldset', |
---|
852 | 'exclude' => 0, |
---|
853 | ), |
---|
854 | 'inline' => |
---|
855 | array ( |
---|
856 | 'format' => 'fieldset', |
---|
857 | 'exclude' => 0, |
---|
858 | ), |
---|
859 | 'token' => |
---|
860 | array ( |
---|
861 | 'format' => 'fieldset', |
---|
862 | 'exclude' => 0, |
---|
863 | ), |
---|
864 | 'label' => 'above', |
---|
865 | ), |
---|
866 | ), |
---|
867 | 'weight' => '46', |
---|
868 | 'group_name' => 'group_ac_ac4', |
---|
869 | ); |
---|
870 | $vid = variable_get('cck_plan_fields_vid', 38); |
---|
871 | $tree = taxonomy_get_tree($vid); |
---|
872 | $options = array(); |
---|
873 | $first = NULL; |
---|
874 | if ($tree) { |
---|
875 | foreach ($tree as $term) { |
---|
876 | if (!$first) { |
---|
877 | $first = $term->tid; |
---|
878 | } |
---|
879 | $options[$term->tid] = $term->tid; |
---|
880 | } |
---|
881 | } |
---|
882 | $content['fields'] = array(); |
---|
883 | $content['fields'][] = array ( |
---|
884 | 'label' => 'AE 1 - Asignación y control de los recursos para gastos de los trabajadores', |
---|
885 | 'type_name' => 'accion_centralizada', |
---|
886 | 'field_name' => 'field_ac_ac1_ae1', |
---|
887 | 'type' => 'cck_plan_fields_field', |
---|
888 | 'widget_type' => 'cck_plan_fields_elements', |
---|
889 | 'change' => 'Change basic information', |
---|
890 | 'weight' => '34', |
---|
891 | 'min' => '0', |
---|
892 | 'max' => '', |
---|
893 | 'description' => '', |
---|
894 | 'default_value' => |
---|
895 | array ( |
---|
896 | 0 => |
---|
897 | array ( |
---|
898 | 'tid' => $first, |
---|
899 | 'value' => '0', |
---|
900 | 'value_1' => '0', |
---|
901 | 'value_2' => '0', |
---|
902 | 'value_3' => '0', |
---|
903 | 'value_4' => '0', |
---|
904 | 'value_5' => '0', |
---|
905 | 'value_6' => '0', |
---|
906 | 'value_7' => '0', |
---|
907 | 'value_8' => '0', |
---|
908 | 'value_9' => '0', |
---|
909 | 'value_10' => '0', |
---|
910 | 'value_11' => '0', |
---|
911 | 'total' => '0', |
---|
912 | '_error_element' => 'value', |
---|
913 | ), |
---|
914 | ), |
---|
915 | 'default_value_php' => '', |
---|
916 | 'default_value_widget' => NULL, |
---|
917 | 'group' => 'group_ac_ac1', |
---|
918 | 'required' => 0, |
---|
919 | 'multiple' => '1', |
---|
920 | 'vid' => $vid, |
---|
921 | 'vtid' => $options, |
---|
922 | 'op' => 'Guardar configuraciones del campo', |
---|
923 | 'module' => 'cck_plan_fields', |
---|
924 | 'widget_module' => 'cck_plan_fields', |
---|
925 | 'columns' => |
---|
926 | array ( |
---|
927 | 'tid' => |
---|
928 | array ( |
---|
929 | 'type' => 'int', |
---|
930 | 'not null' => false, |
---|
931 | 'sortable' => true, |
---|
932 | 'views' => true, |
---|
933 | ), |
---|
934 | 'value' => |
---|
935 | array ( |
---|
936 | 'type' => 'numeric', |
---|
937 | 'precision' => '32', |
---|
938 | 'scale' => '0', |
---|
939 | 'not null' => false, |
---|
940 | 'sortable' => true, |
---|
941 | ), |
---|
942 | 'value_1' => |
---|
943 | array ( |
---|
944 | 'type' => 'numeric', |
---|
945 | 'precision' => '32', |
---|
946 | 'scale' => '0', |
---|
947 | 'not null' => false, |
---|
948 | 'sortable' => true, |
---|
949 | ), |
---|
950 | 'value_2' => |
---|
951 | array ( |
---|
952 | 'type' => 'numeric', |
---|
953 | 'precision' => '32', |
---|
954 | 'scale' => '0', |
---|
955 | 'not null' => false, |
---|
956 | 'sortable' => true, |
---|
957 | ), |
---|
958 | 'value_3' => |
---|
959 | array ( |
---|
960 | 'type' => 'numeric', |
---|
961 | 'precision' => '32', |
---|
962 | 'scale' => '0', |
---|
963 | 'not null' => false, |
---|
964 | 'sortable' => true, |
---|
965 | ), |
---|
966 | 'value_4' => |
---|
967 | array ( |
---|
968 | 'type' => 'numeric', |
---|
969 | 'precision' => '32', |
---|
970 | 'scale' => '0', |
---|
971 | 'not null' => false, |
---|
972 | 'sortable' => true, |
---|
973 | ), |
---|
974 | 'value_5' => |
---|
975 | array ( |
---|
976 | 'type' => 'numeric', |
---|
977 | 'precision' => '32', |
---|
978 | 'scale' => '0', |
---|
979 | 'not null' => false, |
---|
980 | 'sortable' => true, |
---|
981 | ), |
---|
982 | 'value_6' => |
---|
983 | array ( |
---|
984 | 'type' => 'numeric', |
---|
985 | 'precision' => '32', |
---|
986 | 'scale' => '0', |
---|
987 | 'not null' => false, |
---|
988 | 'sortable' => true, |
---|
989 | ), |
---|
990 | 'value_7' => |
---|
991 | array ( |
---|
992 | 'type' => 'numeric', |
---|
993 | 'precision' => '32', |
---|
994 | 'scale' => '0', |
---|
995 | 'not null' => false, |
---|
996 | 'sortable' => true, |
---|
997 | ), |
---|
998 | 'value_8' => |
---|
999 | array ( |
---|
1000 | 'type' => 'numeric', |
---|
1001 | 'precision' => '32', |
---|
1002 | 'scale' => '0', |
---|
1003 | 'not null' => false, |
---|
1004 | 'sortable' => true, |
---|
1005 | ), |
---|
1006 | 'value_9' => |
---|
1007 | array ( |
---|
1008 | 'type' => 'numeric', |
---|
1009 | 'precision' => '32', |
---|
1010 | 'scale' => '0', |
---|
1011 | 'not null' => false, |
---|
1012 | 'sortable' => true, |
---|
1013 | ), |
---|
1014 | 'value_10' => |
---|
1015 | array ( |
---|
1016 | 'type' => 'numeric', |
---|
1017 | 'precision' => '32', |
---|
1018 | 'scale' => '0', |
---|
1019 | 'not null' => false, |
---|
1020 | 'sortable' => true, |
---|
1021 | ), |
---|
1022 | 'value_11' => |
---|
1023 | array ( |
---|
1024 | 'type' => 'numeric', |
---|
1025 | 'precision' => '32', |
---|
1026 | 'scale' => '0', |
---|
1027 | 'not null' => false, |
---|
1028 | 'sortable' => true, |
---|
1029 | ), |
---|
1030 | 'value_12' => |
---|
1031 | array ( |
---|
1032 | 'type' => 'numeric', |
---|
1033 | 'precision' => '32', |
---|
1034 | 'scale' => '0', |
---|
1035 | 'not null' => false, |
---|
1036 | 'sortable' => true, |
---|
1037 | ), |
---|
1038 | ), |
---|
1039 | 'display_settings' => |
---|
1040 | array ( |
---|
1041 | 'weight' => '34', |
---|
1042 | 'parent' => 'group_ac_ac1', |
---|
1043 | 'label' => |
---|
1044 | array ( |
---|
1045 | 'format' => 'above', |
---|
1046 | ), |
---|
1047 | 'teaser' => |
---|
1048 | array ( |
---|
1049 | 'format' => 'default', |
---|
1050 | 'exclude' => 0, |
---|
1051 | ), |
---|
1052 | 'full' => |
---|
1053 | array ( |
---|
1054 | 'format' => 'hidden', |
---|
1055 | 'exclude' => 0, |
---|
1056 | ), |
---|
1057 | 4 => |
---|
1058 | array ( |
---|
1059 | 'format' => 'default', |
---|
1060 | 'exclude' => 0, |
---|
1061 | ), |
---|
1062 | 'modal' => |
---|
1063 | array ( |
---|
1064 | 'format' => 'default', |
---|
1065 | 'exclude' => 0, |
---|
1066 | ), |
---|
1067 | 'inline' => |
---|
1068 | array ( |
---|
1069 | 'format' => 'default', |
---|
1070 | 'exclude' => 0, |
---|
1071 | ), |
---|
1072 | 'token' => |
---|
1073 | array ( |
---|
1074 | 'format' => 'default', |
---|
1075 | 'exclude' => 0, |
---|
1076 | ), |
---|
1077 | ), |
---|
1078 | ); |
---|
1079 | $content['fields'][] = array ( |
---|
1080 | 'label' => 'AE 1 - Apoyo institucional a las acciones especÃficas de los proyectos del ente', |
---|
1081 | 'type_name' => 'accion_centralizada', |
---|
1082 | 'field_name' => 'field_ac_ac1_ae2', |
---|
1083 | 'type' => 'cck_plan_fields_field', |
---|
1084 | 'widget_type' => 'cck_plan_fields_elements', |
---|
1085 | 'change' => 'Change basic information', |
---|
1086 | 'weight' => '38', |
---|
1087 | 'min' => '0', |
---|
1088 | 'max' => '', |
---|
1089 | 'description' => '', |
---|
1090 | 'default_value' => |
---|
1091 | array ( |
---|
1092 | 0 => |
---|
1093 | array ( |
---|
1094 | 'tid' => $first, |
---|
1095 | 'value' => '0', |
---|
1096 | 'value_1' => '0', |
---|
1097 | 'value_2' => '0', |
---|
1098 | 'value_3' => '0', |
---|
1099 | 'value_4' => '0', |
---|
1100 | 'value_5' => '0', |
---|
1101 | 'value_6' => '0', |
---|
1102 | 'value_7' => '0', |
---|
1103 | 'value_8' => '0', |
---|
1104 | 'value_9' => '0', |
---|
1105 | 'value_10' => '0', |
---|
1106 | 'value_11' => '0', |
---|
1107 | 'total' => '0', |
---|
1108 | '_error_element' => 'value', |
---|
1109 | ), |
---|
1110 | ), |
---|
1111 | 'default_value_php' => '', |
---|
1112 | 'default_value_widget' => |
---|
1113 | array ( |
---|
1114 | 'field_ac_ac1_ae2' => |
---|
1115 | array ( |
---|
1116 | 0 => |
---|
1117 | array ( |
---|
1118 | 'tid' => $first, |
---|
1119 | 'value' => 0, |
---|
1120 | 'value_1' => 0, |
---|
1121 | 'value_2' => 0, |
---|
1122 | 'value_3' => 0, |
---|
1123 | 'value_4' => 0, |
---|
1124 | 'value_5' => 0, |
---|
1125 | 'value_6' => 0, |
---|
1126 | 'value_7' => 0, |
---|
1127 | 'value_8' => 0, |
---|
1128 | 'value_9' => 0, |
---|
1129 | 'value_10' => 0, |
---|
1130 | 'value_11' => 0, |
---|
1131 | 'total' => 0, |
---|
1132 | '_error_element' => 'value', |
---|
1133 | ), |
---|
1134 | ), |
---|
1135 | ), |
---|
1136 | 'group' => 'group_ac_ac2', |
---|
1137 | 'required' => 0, |
---|
1138 | 'multiple' => '1', |
---|
1139 | 'vid' => $vid, |
---|
1140 | 'vtid' => $options, |
---|
1141 | 'op' => 'Guardar configuraciones del campo', |
---|
1142 | 'module' => 'cck_plan_fields', |
---|
1143 | 'widget_module' => 'cck_plan_fields', |
---|
1144 | 'columns' => |
---|
1145 | array ( |
---|
1146 | 'tid' => |
---|
1147 | array ( |
---|
1148 | 'type' => 'int', |
---|
1149 | 'not null' => false, |
---|
1150 | 'sortable' => true, |
---|
1151 | 'views' => true, |
---|
1152 | ), |
---|
1153 | 'value' => |
---|
1154 | array ( |
---|
1155 | 'type' => 'numeric', |
---|
1156 | 'precision' => '32', |
---|
1157 | 'scale' => '0', |
---|
1158 | 'not null' => false, |
---|
1159 | 'sortable' => true, |
---|
1160 | ), |
---|
1161 | 'value_1' => |
---|
1162 | array ( |
---|
1163 | 'type' => 'numeric', |
---|
1164 | 'precision' => '32', |
---|
1165 | 'scale' => '0', |
---|
1166 | 'not null' => false, |
---|
1167 | 'sortable' => true, |
---|
1168 | ), |
---|
1169 | 'value_2' => |
---|
1170 | array ( |
---|
1171 | 'type' => 'numeric', |
---|
1172 | 'precision' => '32', |
---|
1173 | 'scale' => '0', |
---|
1174 | 'not null' => false, |
---|
1175 | 'sortable' => true, |
---|
1176 | ), |
---|
1177 | 'value_3' => |
---|
1178 | array ( |
---|
1179 | 'type' => 'numeric', |
---|
1180 | 'precision' => '32', |
---|
1181 | 'scale' => '0', |
---|
1182 | 'not null' => false, |
---|
1183 | 'sortable' => true, |
---|
1184 | ), |
---|
1185 | 'value_4' => |
---|
1186 | array ( |
---|
1187 | 'type' => 'numeric', |
---|
1188 | 'precision' => '32', |
---|
1189 | 'scale' => '0', |
---|
1190 | 'not null' => false, |
---|
1191 | 'sortable' => true, |
---|
1192 | ), |
---|
1193 | 'value_5' => |
---|
1194 | array ( |
---|
1195 | 'type' => 'numeric', |
---|
1196 | 'precision' => '32', |
---|
1197 | 'scale' => '0', |
---|
1198 | 'not null' => false, |
---|
1199 | 'sortable' => true, |
---|
1200 | ), |
---|
1201 | 'value_6' => |
---|
1202 | array ( |
---|
1203 | 'type' => 'numeric', |
---|
1204 | 'precision' => '32', |
---|
1205 | 'scale' => '0', |
---|
1206 | 'not null' => false, |
---|
1207 | 'sortable' => true, |
---|
1208 | ), |
---|
1209 | 'value_7' => |
---|
1210 | array ( |
---|
1211 | 'type' => 'numeric', |
---|
1212 | 'precision' => '32', |
---|
1213 | 'scale' => '0', |
---|
1214 | 'not null' => false, |
---|
1215 | 'sortable' => true, |
---|
1216 | ), |
---|
1217 | 'value_8' => |
---|
1218 | array ( |
---|
1219 | 'type' => 'numeric', |
---|
1220 | 'precision' => '32', |
---|
1221 | 'scale' => '0', |
---|
1222 | 'not null' => false, |
---|
1223 | 'sortable' => true, |
---|
1224 | ), |
---|
1225 | 'value_9' => |
---|
1226 | array ( |
---|
1227 | 'type' => 'numeric', |
---|
1228 | 'precision' => '32', |
---|
1229 | 'scale' => '0', |
---|
1230 | 'not null' => false, |
---|
1231 | 'sortable' => true, |
---|
1232 | ), |
---|
1233 | 'value_10' => |
---|
1234 | array ( |
---|
1235 | 'type' => 'numeric', |
---|
1236 | 'precision' => '32', |
---|
1237 | 'scale' => '0', |
---|
1238 | 'not null' => false, |
---|
1239 | 'sortable' => true, |
---|
1240 | ), |
---|
1241 | 'value_11' => |
---|
1242 | array ( |
---|
1243 | 'type' => 'numeric', |
---|
1244 | 'precision' => '32', |
---|
1245 | 'scale' => '0', |
---|
1246 | 'not null' => false, |
---|
1247 | 'sortable' => true, |
---|
1248 | ), |
---|
1249 | 'value_12' => |
---|
1250 | array ( |
---|
1251 | 'type' => 'numeric', |
---|
1252 | 'precision' => '32', |
---|
1253 | 'scale' => '0', |
---|
1254 | 'not null' => false, |
---|
1255 | 'sortable' => true, |
---|
1256 | ), |
---|
1257 | ), |
---|
1258 | 'display_settings' => |
---|
1259 | array ( |
---|
1260 | 'weight' => '38', |
---|
1261 | 'parent' => 'group_ac_ac2', |
---|
1262 | 'label' => |
---|
1263 | array ( |
---|
1264 | 'format' => 'above', |
---|
1265 | ), |
---|
1266 | 'teaser' => |
---|
1267 | array ( |
---|
1268 | 'format' => 'default', |
---|
1269 | 'exclude' => 0, |
---|
1270 | ), |
---|
1271 | 'full' => |
---|
1272 | array ( |
---|
1273 | 'format' => 'hidden', |
---|
1274 | 'exclude' => 0, |
---|
1275 | ), |
---|
1276 | 4 => |
---|
1277 | array ( |
---|
1278 | 'format' => 'default', |
---|
1279 | 'exclude' => 0, |
---|
1280 | ), |
---|
1281 | 'modal' => |
---|
1282 | array ( |
---|
1283 | 'format' => 'default', |
---|
1284 | 'exclude' => 0, |
---|
1285 | ), |
---|
1286 | 'inline' => |
---|
1287 | array ( |
---|
1288 | 'format' => 'default', |
---|
1289 | 'exclude' => 0, |
---|
1290 | ), |
---|
1291 | 'token' => |
---|
1292 | array ( |
---|
1293 | 'format' => 'default', |
---|
1294 | 'exclude' => 0, |
---|
1295 | ), |
---|
1296 | ), |
---|
1297 | ); |
---|
1298 | $content['fields'][] = array ( |
---|
1299 | 'label' => 'AE 2 - Apoyo institucional al sector privado y al sector externo', |
---|
1300 | 'type_name' => 'accion_centralizada', |
---|
1301 | 'field_name' => 'field_ac_ac2_ae2', |
---|
1302 | 'type' => 'cck_plan_fields_field', |
---|
1303 | 'widget_type' => 'cck_plan_fields_elements', |
---|
1304 | 'change' => 'Change basic information', |
---|
1305 | 'weight' => '39', |
---|
1306 | 'min' => '0', |
---|
1307 | 'max' => '', |
---|
1308 | 'description' => '', |
---|
1309 | 'default_value' => |
---|
1310 | array ( |
---|
1311 | 0 => |
---|
1312 | array ( |
---|
1313 | 'tid' => $first, |
---|
1314 | 'value' => '0', |
---|
1315 | 'value_1' => '0', |
---|
1316 | 'value_2' => '0', |
---|
1317 | 'value_3' => '0', |
---|
1318 | 'value_4' => '0', |
---|
1319 | 'value_5' => '0', |
---|
1320 | 'value_6' => '0', |
---|
1321 | 'value_7' => '0', |
---|
1322 | 'value_8' => '0', |
---|
1323 | 'value_9' => '0', |
---|
1324 | 'value_10' => '0', |
---|
1325 | 'value_11' => '0', |
---|
1326 | 'total' => '0', |
---|
1327 | '_error_element' => 'value', |
---|
1328 | ), |
---|
1329 | ), |
---|
1330 | 'default_value_php' => '', |
---|
1331 | 'default_value_widget' => |
---|
1332 | array ( |
---|
1333 | 'field_ac_ac2_ae2' => |
---|
1334 | array ( |
---|
1335 | 0 => |
---|
1336 | array ( |
---|
1337 | 'tid' => $first, |
---|
1338 | 'value' => 0, |
---|
1339 | 'value_1' => 0, |
---|
1340 | 'value_2' => 0, |
---|
1341 | 'value_3' => 0, |
---|
1342 | 'value_4' => 0, |
---|
1343 | 'value_5' => 0, |
---|
1344 | 'value_6' => 0, |
---|
1345 | 'value_7' => 0, |
---|
1346 | 'value_8' => 0, |
---|
1347 | 'value_9' => 0, |
---|
1348 | 'value_10' => 0, |
---|
1349 | 'value_11' => 0, |
---|
1350 | 'total' => 0, |
---|
1351 | '_error_element' => 'value', |
---|
1352 | ), |
---|
1353 | ), |
---|
1354 | ), |
---|
1355 | 'group' => 'group_ac_ac2', |
---|
1356 | 'required' => 0, |
---|
1357 | 'multiple' => '1', |
---|
1358 | 'vid' => $vid, |
---|
1359 | 'vtid' => $options, |
---|
1360 | 'op' => 'Guardar configuraciones del campo', |
---|
1361 | 'module' => 'cck_plan_fields', |
---|
1362 | 'widget_module' => 'cck_plan_fields', |
---|
1363 | 'columns' => |
---|
1364 | array ( |
---|
1365 | 'tid' => |
---|
1366 | array ( |
---|
1367 | 'type' => 'int', |
---|
1368 | 'not null' => false, |
---|
1369 | 'sortable' => true, |
---|
1370 | 'views' => true, |
---|
1371 | ), |
---|
1372 | 'value' => |
---|
1373 | array ( |
---|
1374 | 'type' => 'numeric', |
---|
1375 | 'precision' => '32', |
---|
1376 | 'scale' => '0', |
---|
1377 | 'not null' => false, |
---|
1378 | 'sortable' => true, |
---|
1379 | ), |
---|
1380 | 'value_1' => |
---|
1381 | array ( |
---|
1382 | 'type' => 'numeric', |
---|
1383 | 'precision' => '32', |
---|
1384 | 'scale' => '0', |
---|
1385 | 'not null' => false, |
---|
1386 | 'sortable' => true, |
---|
1387 | ), |
---|
1388 | 'value_2' => |
---|
1389 | array ( |
---|
1390 | 'type' => 'numeric', |
---|
1391 | 'precision' => '32', |
---|
1392 | 'scale' => '0', |
---|
1393 | 'not null' => false, |
---|
1394 | 'sortable' => true, |
---|
1395 | ), |
---|
1396 | 'value_3' => |
---|
1397 | array ( |
---|
1398 | 'type' => 'numeric', |
---|
1399 | 'precision' => '32', |
---|
1400 | 'scale' => '0', |
---|
1401 | 'not null' => false, |
---|
1402 | 'sortable' => true, |
---|
1403 | ), |
---|
1404 | 'value_4' => |
---|
1405 | array ( |
---|
1406 | 'type' => 'numeric', |
---|
1407 | 'precision' => '32', |
---|
1408 | 'scale' => '0', |
---|
1409 | 'not null' => false, |
---|
1410 | 'sortable' => true, |
---|
1411 | ), |
---|
1412 | 'value_5' => |
---|
1413 | array ( |
---|
1414 | 'type' => 'numeric', |
---|
1415 | 'precision' => '32', |
---|
1416 | 'scale' => '0', |
---|
1417 | 'not null' => false, |
---|
1418 | 'sortable' => true, |
---|
1419 | ), |
---|
1420 | 'value_6' => |
---|
1421 | array ( |
---|
1422 | 'type' => 'numeric', |
---|
1423 | 'precision' => '32', |
---|
1424 | 'scale' => '0', |
---|
1425 | 'not null' => false, |
---|
1426 | 'sortable' => true, |
---|
1427 | ), |
---|
1428 | 'value_7' => |
---|
1429 | array ( |
---|
1430 | 'type' => 'numeric', |
---|
1431 | 'precision' => '32', |
---|
1432 | 'scale' => '0', |
---|
1433 | 'not null' => false, |
---|
1434 | 'sortable' => true, |
---|
1435 | ), |
---|
1436 | 'value_8' => |
---|
1437 | array ( |
---|
1438 | 'type' => 'numeric', |
---|
1439 | 'precision' => '32', |
---|
1440 | 'scale' => '0', |
---|
1441 | 'not null' => false, |
---|
1442 | 'sortable' => true, |
---|
1443 | ), |
---|
1444 | 'value_9' => |
---|
1445 | array ( |
---|
1446 | 'type' => 'numeric', |
---|
1447 | 'precision' => '32', |
---|
1448 | 'scale' => '0', |
---|
1449 | 'not null' => false, |
---|
1450 | 'sortable' => true, |
---|
1451 | ), |
---|
1452 | 'value_10' => |
---|
1453 | array ( |
---|
1454 | 'type' => 'numeric', |
---|
1455 | 'precision' => '32', |
---|
1456 | 'scale' => '0', |
---|
1457 | 'not null' => false, |
---|
1458 | 'sortable' => true, |
---|
1459 | ), |
---|
1460 | 'value_11' => |
---|
1461 | array ( |
---|
1462 | 'type' => 'numeric', |
---|
1463 | 'precision' => '32', |
---|
1464 | 'scale' => '0', |
---|
1465 | 'not null' => false, |
---|
1466 | 'sortable' => true, |
---|
1467 | ), |
---|
1468 | 'value_12' => |
---|
1469 | array ( |
---|
1470 | 'type' => 'numeric', |
---|
1471 | 'precision' => '32', |
---|
1472 | 'scale' => '0', |
---|
1473 | 'not null' => false, |
---|
1474 | 'sortable' => true, |
---|
1475 | ), |
---|
1476 | ), |
---|
1477 | 'display_settings' => |
---|
1478 | array ( |
---|
1479 | 'weight' => '39', |
---|
1480 | 'parent' => 'group_ac_ac2', |
---|
1481 | 'label' => |
---|
1482 | array ( |
---|
1483 | 'format' => 'above', |
---|
1484 | ), |
---|
1485 | 'teaser' => |
---|
1486 | array ( |
---|
1487 | 'format' => 'default', |
---|
1488 | 'exclude' => 0, |
---|
1489 | ), |
---|
1490 | 'full' => |
---|
1491 | array ( |
---|
1492 | 'format' => 'hidden', |
---|
1493 | 'exclude' => 0, |
---|
1494 | ), |
---|
1495 | 4 => |
---|
1496 | array ( |
---|
1497 | 'format' => 'default', |
---|
1498 | 'exclude' => 0, |
---|
1499 | ), |
---|
1500 | 'modal' => |
---|
1501 | array ( |
---|
1502 | 'format' => 'default', |
---|
1503 | 'exclude' => 0, |
---|
1504 | ), |
---|
1505 | 'inline' => |
---|
1506 | array ( |
---|
1507 | 'format' => 'default', |
---|
1508 | 'exclude' => 0, |
---|
1509 | ), |
---|
1510 | 'token' => |
---|
1511 | array ( |
---|
1512 | 'format' => 'default', |
---|
1513 | 'exclude' => 0, |
---|
1514 | ), |
---|
1515 | ), |
---|
1516 | ); |
---|
1517 | $content['fields'][] = array ( |
---|
1518 | 'label' => 'AE 3 - Apoyo institucional al sector público', |
---|
1519 | 'type_name' => 'accion_centralizada', |
---|
1520 | 'field_name' => 'field_ac_ac2_ae3', |
---|
1521 | 'type' => 'cck_plan_fields_field', |
---|
1522 | 'widget_type' => 'cck_plan_fields_elements', |
---|
1523 | 'change' => 'Change basic information', |
---|
1524 | 'weight' => '40', |
---|
1525 | 'min' => '0', |
---|
1526 | 'max' => '', |
---|
1527 | 'description' => '', |
---|
1528 | 'default_value' => |
---|
1529 | array ( |
---|
1530 | 0 => |
---|
1531 | array ( |
---|
1532 | 'tid' => $first, |
---|
1533 | 'value' => '0', |
---|
1534 | 'value_1' => '0', |
---|
1535 | 'value_2' => '0', |
---|
1536 | 'value_3' => '0', |
---|
1537 | 'value_4' => '0', |
---|
1538 | 'value_5' => '0', |
---|
1539 | 'value_6' => '0', |
---|
1540 | 'value_7' => '0', |
---|
1541 | 'value_8' => '0', |
---|
1542 | 'value_9' => '0', |
---|
1543 | 'value_10' => '0', |
---|
1544 | 'value_11' => '0', |
---|
1545 | 'total' => '0', |
---|
1546 | '_error_element' => 'value', |
---|
1547 | ), |
---|
1548 | ), |
---|
1549 | 'default_value_php' => '', |
---|
1550 | 'default_value_widget' => |
---|
1551 | array ( |
---|
1552 | 'field_ac_ac2_ae3' => |
---|
1553 | array ( |
---|
1554 | 0 => |
---|
1555 | array ( |
---|
1556 | 'tid' => $first, |
---|
1557 | 'value' => 0, |
---|
1558 | 'value_1' => 0, |
---|
1559 | 'value_2' => 0, |
---|
1560 | 'value_3' => 0, |
---|
1561 | 'value_4' => 0, |
---|
1562 | 'value_5' => 0, |
---|
1563 | 'value_6' => 0, |
---|
1564 | 'value_7' => 0, |
---|
1565 | 'value_8' => 0, |
---|
1566 | 'value_9' => 0, |
---|
1567 | 'value_10' => 0, |
---|
1568 | 'value_11' => 0, |
---|
1569 | 'total' => 0, |
---|
1570 | '_error_element' => 'value', |
---|
1571 | ), |
---|
1572 | ), |
---|
1573 | ), |
---|
1574 | 'group' => 'group_ac_ac2', |
---|
1575 | 'required' => 0, |
---|
1576 | 'multiple' => '1', |
---|
1577 | 'vid' => $vid, |
---|
1578 | 'vtid' => $options, |
---|
1579 | 'op' => 'Guardar configuraciones del campo', |
---|
1580 | 'module' => 'cck_plan_fields', |
---|
1581 | 'widget_module' => 'cck_plan_fields', |
---|
1582 | 'columns' => |
---|
1583 | array ( |
---|
1584 | 'tid' => |
---|
1585 | array ( |
---|
1586 | 'type' => 'int', |
---|
1587 | 'not null' => false, |
---|
1588 | 'sortable' => true, |
---|
1589 | 'views' => true, |
---|
1590 | ), |
---|
1591 | 'value' => |
---|
1592 | array ( |
---|
1593 | 'type' => 'numeric', |
---|
1594 | 'precision' => '32', |
---|
1595 | 'scale' => '0', |
---|
1596 | 'not null' => false, |
---|
1597 | 'sortable' => true, |
---|
1598 | ), |
---|
1599 | 'value_1' => |
---|
1600 | array ( |
---|
1601 | 'type' => 'numeric', |
---|
1602 | 'precision' => '32', |
---|
1603 | 'scale' => '0', |
---|
1604 | 'not null' => false, |
---|
1605 | 'sortable' => true, |
---|
1606 | ), |
---|
1607 | 'value_2' => |
---|
1608 | array ( |
---|
1609 | 'type' => 'numeric', |
---|
1610 | 'precision' => '32', |
---|
1611 | 'scale' => '0', |
---|
1612 | 'not null' => false, |
---|
1613 | 'sortable' => true, |
---|
1614 | ), |
---|
1615 | 'value_3' => |
---|
1616 | array ( |
---|
1617 | 'type' => 'numeric', |
---|
1618 | 'precision' => '32', |
---|
1619 | 'scale' => '0', |
---|
1620 | 'not null' => false, |
---|
1621 | 'sortable' => true, |
---|
1622 | ), |
---|
1623 | 'value_4' => |
---|
1624 | array ( |
---|
1625 | 'type' => 'numeric', |
---|
1626 | 'precision' => '32', |
---|
1627 | 'scale' => '0', |
---|
1628 | 'not null' => false, |
---|
1629 | 'sortable' => true, |
---|
1630 | ), |
---|
1631 | 'value_5' => |
---|
1632 | array ( |
---|
1633 | 'type' => 'numeric', |
---|
1634 | 'precision' => '32', |
---|
1635 | 'scale' => '0', |
---|
1636 | 'not null' => false, |
---|
1637 | 'sortable' => true, |
---|
1638 | ), |
---|
1639 | 'value_6' => |
---|
1640 | array ( |
---|
1641 | 'type' => 'numeric', |
---|
1642 | 'precision' => '32', |
---|
1643 | 'scale' => '0', |
---|
1644 | 'not null' => false, |
---|
1645 | 'sortable' => true, |
---|
1646 | ), |
---|
1647 | 'value_7' => |
---|
1648 | array ( |
---|
1649 | 'type' => 'numeric', |
---|
1650 | 'precision' => '32', |
---|
1651 | 'scale' => '0', |
---|
1652 | 'not null' => false, |
---|
1653 | 'sortable' => true, |
---|
1654 | ), |
---|
1655 | 'value_8' => |
---|
1656 | array ( |
---|
1657 | 'type' => 'numeric', |
---|
1658 | 'precision' => '32', |
---|
1659 | 'scale' => '0', |
---|
1660 | 'not null' => false, |
---|
1661 | 'sortable' => true, |
---|
1662 | ), |
---|
1663 | 'value_9' => |
---|
1664 | array ( |
---|
1665 | 'type' => 'numeric', |
---|
1666 | 'precision' => '32', |
---|
1667 | 'scale' => '0', |
---|
1668 | 'not null' => false, |
---|
1669 | 'sortable' => true, |
---|
1670 | ), |
---|
1671 | 'value_10' => |
---|
1672 | array ( |
---|
1673 | 'type' => 'numeric', |
---|
1674 | 'precision' => '32', |
---|
1675 | 'scale' => '0', |
---|
1676 | 'not null' => false, |
---|
1677 | 'sortable' => true, |
---|
1678 | ), |
---|
1679 | 'value_11' => |
---|
1680 | array ( |
---|
1681 | 'type' => 'numeric', |
---|
1682 | 'precision' => '32', |
---|
1683 | 'scale' => '0', |
---|
1684 | 'not null' => false, |
---|
1685 | 'sortable' => true, |
---|
1686 | ), |
---|
1687 | 'value_12' => |
---|
1688 | array ( |
---|
1689 | 'type' => 'numeric', |
---|
1690 | 'precision' => '32', |
---|
1691 | 'scale' => '0', |
---|
1692 | 'not null' => false, |
---|
1693 | 'sortable' => true, |
---|
1694 | ), |
---|
1695 | ), |
---|
1696 | 'display_settings' => |
---|
1697 | array ( |
---|
1698 | 'weight' => '40', |
---|
1699 | 'parent' => 'group_ac_ac2', |
---|
1700 | 'label' => |
---|
1701 | array ( |
---|
1702 | 'format' => 'above', |
---|
1703 | ), |
---|
1704 | 'teaser' => |
---|
1705 | array ( |
---|
1706 | 'format' => 'default', |
---|
1707 | 'exclude' => 0, |
---|
1708 | ), |
---|
1709 | 'full' => |
---|
1710 | array ( |
---|
1711 | 'format' => 'hidden', |
---|
1712 | 'exclude' => 0, |
---|
1713 | ), |
---|
1714 | 4 => |
---|
1715 | array ( |
---|
1716 | 'format' => 'default', |
---|
1717 | 'exclude' => 0, |
---|
1718 | ), |
---|
1719 | 'modal' => |
---|
1720 | array ( |
---|
1721 | 'format' => 'default', |
---|
1722 | 'exclude' => 0, |
---|
1723 | ), |
---|
1724 | 'inline' => |
---|
1725 | array ( |
---|
1726 | 'format' => 'default', |
---|
1727 | 'exclude' => 0, |
---|
1728 | ), |
---|
1729 | 'token' => |
---|
1730 | array ( |
---|
1731 | 'format' => 'default', |
---|
1732 | 'exclude' => 0, |
---|
1733 | ), |
---|
1734 | ), |
---|
1735 | ); |
---|
1736 | $content['fields'][] = array ( |
---|
1737 | 'label' => 'AE 1 - Asignación y control de los recursos para gastos de los pensionados, pensionadas, jubilados y jubiladas', |
---|
1738 | 'type_name' => 'accion_centralizada', |
---|
1739 | 'field_name' => 'field_ac_ac3_ae1', |
---|
1740 | 'type' => 'cck_plan_fields_field', |
---|
1741 | 'widget_type' => 'cck_plan_fields_elements', |
---|
1742 | 'change' => 'Change basic information', |
---|
1743 | 'weight' => '43', |
---|
1744 | 'min' => '0', |
---|
1745 | 'max' => '', |
---|
1746 | 'description' => '', |
---|
1747 | 'default_value' => |
---|
1748 | array ( |
---|
1749 | 0 => |
---|
1750 | array ( |
---|
1751 | 'tid' => $first, |
---|
1752 | 'value' => '0', |
---|
1753 | 'value_1' => '0', |
---|
1754 | 'value_2' => '0', |
---|
1755 | 'value_3' => '0', |
---|
1756 | 'value_4' => '0', |
---|
1757 | 'value_5' => '0', |
---|
1758 | 'value_6' => '0', |
---|
1759 | 'value_7' => '0', |
---|
1760 | 'value_8' => '0', |
---|
1761 | 'value_9' => '0', |
---|
1762 | 'value_10' => '0', |
---|
1763 | 'value_11' => '0', |
---|
1764 | 'total' => '0', |
---|
1765 | '_error_element' => 'value', |
---|
1766 | ), |
---|
1767 | ), |
---|
1768 | 'default_value_php' => '', |
---|
1769 | 'default_value_widget' => |
---|
1770 | array ( |
---|
1771 | 'field_ac_ac3_ae1' => |
---|
1772 | array ( |
---|
1773 | 0 => |
---|
1774 | array ( |
---|
1775 | 'tid' => $first, |
---|
1776 | 'value' => 0, |
---|
1777 | 'value_1' => 0, |
---|
1778 | 'value_2' => 0, |
---|
1779 | 'value_3' => 0, |
---|
1780 | 'value_4' => 0, |
---|
1781 | 'value_5' => 0, |
---|
1782 | 'value_6' => 0, |
---|
1783 | 'value_7' => 0, |
---|
1784 | 'value_8' => 0, |
---|
1785 | 'value_9' => 0, |
---|
1786 | 'value_10' => 0, |
---|
1787 | 'value_11' => 0, |
---|
1788 | 'total' => 0, |
---|
1789 | '_error_element' => 'value', |
---|
1790 | ), |
---|
1791 | ), |
---|
1792 | ), |
---|
1793 | 'group' => 'group_ac_ac3', |
---|
1794 | 'required' => 0, |
---|
1795 | 'multiple' => '1', |
---|
1796 | 'vid' => $vid, |
---|
1797 | 'vtid' => $options, |
---|
1798 | 'op' => 'Guardar configuraciones del campo', |
---|
1799 | 'module' => 'cck_plan_fields', |
---|
1800 | 'widget_module' => 'cck_plan_fields', |
---|
1801 | 'columns' => |
---|
1802 | array ( |
---|
1803 | 'tid' => |
---|
1804 | array ( |
---|
1805 | 'type' => 'int', |
---|
1806 | 'not null' => false, |
---|
1807 | 'sortable' => true, |
---|
1808 | 'views' => true, |
---|
1809 | ), |
---|
1810 | 'value' => |
---|
1811 | array ( |
---|
1812 | 'type' => 'numeric', |
---|
1813 | 'precision' => '32', |
---|
1814 | 'scale' => '0', |
---|
1815 | 'not null' => false, |
---|
1816 | 'sortable' => true, |
---|
1817 | ), |
---|
1818 | 'value_1' => |
---|
1819 | array ( |
---|
1820 | 'type' => 'numeric', |
---|
1821 | 'precision' => '32', |
---|
1822 | 'scale' => '0', |
---|
1823 | 'not null' => false, |
---|
1824 | 'sortable' => true, |
---|
1825 | ), |
---|
1826 | 'value_2' => |
---|
1827 | array ( |
---|
1828 | 'type' => 'numeric', |
---|
1829 | 'precision' => '32', |
---|
1830 | 'scale' => '0', |
---|
1831 | 'not null' => false, |
---|
1832 | 'sortable' => true, |
---|
1833 | ), |
---|
1834 | 'value_3' => |
---|
1835 | array ( |
---|
1836 | 'type' => 'numeric', |
---|
1837 | 'precision' => '32', |
---|
1838 | 'scale' => '0', |
---|
1839 | 'not null' => false, |
---|
1840 | 'sortable' => true, |
---|
1841 | ), |
---|
1842 | 'value_4' => |
---|
1843 | array ( |
---|
1844 | 'type' => 'numeric', |
---|
1845 | 'precision' => '32', |
---|
1846 | 'scale' => '0', |
---|
1847 | 'not null' => false, |
---|
1848 | 'sortable' => true, |
---|
1849 | ), |
---|
1850 | 'value_5' => |
---|
1851 | array ( |
---|
1852 | 'type' => 'numeric', |
---|
1853 | 'precision' => '32', |
---|
1854 | 'scale' => '0', |
---|
1855 | 'not null' => false, |
---|
1856 | 'sortable' => true, |
---|
1857 | ), |
---|
1858 | 'value_6' => |
---|
1859 | array ( |
---|
1860 | 'type' => 'numeric', |
---|
1861 | 'precision' => '32', |
---|
1862 | 'scale' => '0', |
---|
1863 | 'not null' => false, |
---|
1864 | 'sortable' => true, |
---|
1865 | ), |
---|
1866 | 'value_7' => |
---|
1867 | array ( |
---|
1868 | 'type' => 'numeric', |
---|
1869 | 'precision' => '32', |
---|
1870 | 'scale' => '0', |
---|
1871 | 'not null' => false, |
---|
1872 | 'sortable' => true, |
---|
1873 | ), |
---|
1874 | 'value_8' => |
---|
1875 | array ( |
---|
1876 | 'type' => 'numeric', |
---|
1877 | 'precision' => '32', |
---|
1878 | 'scale' => '0', |
---|
1879 | 'not null' => false, |
---|
1880 | 'sortable' => true, |
---|
1881 | ), |
---|
1882 | 'value_9' => |
---|
1883 | array ( |
---|
1884 | 'type' => 'numeric', |
---|
1885 | 'precision' => '32', |
---|
1886 | 'scale' => '0', |
---|
1887 | 'not null' => false, |
---|
1888 | 'sortable' => true, |
---|
1889 | ), |
---|
1890 | 'value_10' => |
---|
1891 | array ( |
---|
1892 | 'type' => 'numeric', |
---|
1893 | 'precision' => '32', |
---|
1894 | 'scale' => '0', |
---|
1895 | 'not null' => false, |
---|
1896 | 'sortable' => true, |
---|
1897 | ), |
---|
1898 | 'value_11' => |
---|
1899 | array ( |
---|
1900 | 'type' => 'numeric', |
---|
1901 | 'precision' => '32', |
---|
1902 | 'scale' => '0', |
---|
1903 | 'not null' => false, |
---|
1904 | 'sortable' => true, |
---|
1905 | ), |
---|
1906 | 'value_12' => |
---|
1907 | array ( |
---|
1908 | 'type' => 'numeric', |
---|
1909 | 'precision' => '32', |
---|
1910 | 'scale' => '0', |
---|
1911 | 'not null' => false, |
---|
1912 | 'sortable' => true, |
---|
1913 | ), |
---|
1914 | ), |
---|
1915 | 'display_settings' => |
---|
1916 | array ( |
---|
1917 | 'weight' => '43', |
---|
1918 | 'parent' => 'group_ac_ac3', |
---|
1919 | 'label' => |
---|
1920 | array ( |
---|
1921 | 'format' => 'above', |
---|
1922 | ), |
---|
1923 | 'teaser' => |
---|
1924 | array ( |
---|
1925 | 'format' => 'default', |
---|
1926 | 'exclude' => 0, |
---|
1927 | ), |
---|
1928 | 'full' => |
---|
1929 | array ( |
---|
1930 | 'format' => 'hidden', |
---|
1931 | 'exclude' => 0, |
---|
1932 | ), |
---|
1933 | 4 => |
---|
1934 | array ( |
---|
1935 | 'format' => 'default', |
---|
1936 | 'exclude' => 0, |
---|
1937 | ), |
---|
1938 | 'modal' => |
---|
1939 | array ( |
---|
1940 | 'format' => 'default', |
---|
1941 | 'exclude' => 0, |
---|
1942 | ), |
---|
1943 | 'inline' => |
---|
1944 | array ( |
---|
1945 | 'format' => 'default', |
---|
1946 | 'exclude' => 0, |
---|
1947 | ), |
---|
1948 | 'token' => |
---|
1949 | array ( |
---|
1950 | 'format' => 'default', |
---|
1951 | 'exclude' => 0, |
---|
1952 | ), |
---|
1953 | ), |
---|
1954 | ); |
---|
1955 | $content['fields'][] = array ( |
---|
1956 | 'label' => 'AE 1 - Asignación y control de los recursos para la atención de familias y personas en los refugios', |
---|
1957 | 'type_name' => 'accion_centralizada', |
---|
1958 | 'field_name' => 'field_ac_ac4_ae1', |
---|
1959 | 'type' => 'cck_plan_fields_field', |
---|
1960 | 'widget_type' => 'cck_plan_fields_elements', |
---|
1961 | 'change' => 'Change basic information', |
---|
1962 | 'weight' => '47', |
---|
1963 | 'min' => '0', |
---|
1964 | 'max' => '', |
---|
1965 | 'description' => '', |
---|
1966 | 'default_value' => |
---|
1967 | array ( |
---|
1968 | 0 => |
---|
1969 | array ( |
---|
1970 | 'tid' => $first, |
---|
1971 | 'value' => '0', |
---|
1972 | 'value_1' => '0', |
---|
1973 | 'value_2' => '0', |
---|
1974 | 'value_3' => '0', |
---|
1975 | 'value_4' => '0', |
---|
1976 | 'value_5' => '0', |
---|
1977 | 'value_6' => '0', |
---|
1978 | 'value_7' => '0', |
---|
1979 | 'value_8' => '0', |
---|
1980 | 'value_9' => '0', |
---|
1981 | 'value_10' => '0', |
---|
1982 | 'value_11' => '0', |
---|
1983 | 'total' => '0', |
---|
1984 | '_error_element' => 'value', |
---|
1985 | ), |
---|
1986 | ), |
---|
1987 | 'default_value_php' => '', |
---|
1988 | 'default_value_widget' => |
---|
1989 | array ( |
---|
1990 | 'field_ac_ac4_ae1' => |
---|
1991 | array ( |
---|
1992 | 0 => |
---|
1993 | array ( |
---|
1994 | 'tid' => $first, |
---|
1995 | 'value' => 0, |
---|
1996 | 'value_1' => 0, |
---|
1997 | 'value_2' => 0, |
---|
1998 | 'value_3' => 0, |
---|
1999 | 'value_4' => 0, |
---|
2000 | 'value_5' => 0, |
---|
2001 | 'value_6' => 0, |
---|
2002 | 'value_7' => 0, |
---|
2003 | 'value_8' => 0, |
---|
2004 | 'value_9' => 0, |
---|
2005 | 'value_10' => 0, |
---|
2006 | 'value_11' => 0, |
---|
2007 | 'total' => 0, |
---|
2008 | '_error_element' => 'value', |
---|
2009 | ), |
---|
2010 | ), |
---|
2011 | ), |
---|
2012 | 'group' => 'group_ac_ac4', |
---|
2013 | 'required' => 0, |
---|
2014 | 'multiple' => '1', |
---|
2015 | 'vid' => $vid, |
---|
2016 | 'vtid' => $options, |
---|
2017 | 'op' => 'Guardar configuraciones del campo', |
---|
2018 | 'module' => 'cck_plan_fields', |
---|
2019 | 'widget_module' => 'cck_plan_fields', |
---|
2020 | 'columns' => |
---|
2021 | array ( |
---|
2022 | 'tid' => |
---|
2023 | array ( |
---|
2024 | 'type' => 'int', |
---|
2025 | 'not null' => false, |
---|
2026 | 'sortable' => true, |
---|
2027 | 'views' => true, |
---|
2028 | ), |
---|
2029 | 'value' => |
---|
2030 | array ( |
---|
2031 | 'type' => 'numeric', |
---|
2032 | 'precision' => '32', |
---|
2033 | 'scale' => '0', |
---|
2034 | 'not null' => false, |
---|
2035 | 'sortable' => true, |
---|
2036 | ), |
---|
2037 | 'value_1' => |
---|
2038 | array ( |
---|
2039 | 'type' => 'numeric', |
---|
2040 | 'precision' => '32', |
---|
2041 | 'scale' => '0', |
---|
2042 | 'not null' => false, |
---|
2043 | 'sortable' => true, |
---|
2044 | ), |
---|
2045 | 'value_2' => |
---|
2046 | array ( |
---|
2047 | 'type' => 'numeric', |
---|
2048 | 'precision' => '32', |
---|
2049 | 'scale' => '0', |
---|
2050 | 'not null' => false, |
---|
2051 | 'sortable' => true, |
---|
2052 | ), |
---|
2053 | 'value_3' => |
---|
2054 | array ( |
---|
2055 | 'type' => 'numeric', |
---|
2056 | 'precision' => '32', |
---|
2057 | 'scale' => '0', |
---|
2058 | 'not null' => false, |
---|
2059 | 'sortable' => true, |
---|
2060 | ), |
---|
2061 | 'value_4' => |
---|
2062 | array ( |
---|
2063 | 'type' => 'numeric', |
---|
2064 | 'precision' => '32', |
---|
2065 | 'scale' => '0', |
---|
2066 | 'not null' => false, |
---|
2067 | 'sortable' => true, |
---|
2068 | ), |
---|
2069 | 'value_5' => |
---|
2070 | array ( |
---|
2071 | 'type' => 'numeric', |
---|
2072 | 'precision' => '32', |
---|
2073 | 'scale' => '0', |
---|
2074 | 'not null' => false, |
---|
2075 | 'sortable' => true, |
---|
2076 | ), |
---|
2077 | 'value_6' => |
---|
2078 | array ( |
---|
2079 | 'type' => 'numeric', |
---|
2080 | 'precision' => '32', |
---|
2081 | 'scale' => '0', |
---|
2082 | 'not null' => false, |
---|
2083 | 'sortable' => true, |
---|
2084 | ), |
---|
2085 | 'value_7' => |
---|
2086 | array ( |
---|
2087 | 'type' => 'numeric', |
---|
2088 | 'precision' => '32', |
---|
2089 | 'scale' => '0', |
---|
2090 | 'not null' => false, |
---|
2091 | 'sortable' => true, |
---|
2092 | ), |
---|
2093 | 'value_8' => |
---|
2094 | array ( |
---|
2095 | 'type' => 'numeric', |
---|
2096 | 'precision' => '32', |
---|
2097 | 'scale' => '0', |
---|
2098 | 'not null' => false, |
---|
2099 | 'sortable' => true, |
---|
2100 | ), |
---|
2101 | 'value_9' => |
---|
2102 | array ( |
---|
2103 | 'type' => 'numeric', |
---|
2104 | 'precision' => '32', |
---|
2105 | 'scale' => '0', |
---|
2106 | 'not null' => false, |
---|
2107 | 'sortable' => true, |
---|
2108 | ), |
---|
2109 | 'value_10' => |
---|
2110 | array ( |
---|
2111 | 'type' => 'numeric', |
---|
2112 | 'precision' => '32', |
---|
2113 | 'scale' => '0', |
---|
2114 | 'not null' => false, |
---|
2115 | 'sortable' => true, |
---|
2116 | ), |
---|
2117 | 'value_11' => |
---|
2118 | array ( |
---|
2119 | 'type' => 'numeric', |
---|
2120 | 'precision' => '32', |
---|
2121 | 'scale' => '0', |
---|
2122 | 'not null' => false, |
---|
2123 | 'sortable' => true, |
---|
2124 | ), |
---|
2125 | 'value_12' => |
---|
2126 | array ( |
---|
2127 | 'type' => 'numeric', |
---|
2128 | 'precision' => '32', |
---|
2129 | 'scale' => '0', |
---|
2130 | 'not null' => false, |
---|
2131 | 'sortable' => true, |
---|
2132 | ), |
---|
2133 | ), |
---|
2134 | 'display_settings' => |
---|
2135 | array ( |
---|
2136 | 'weight' => '47', |
---|
2137 | 'parent' => 'group_ac_ac4', |
---|
2138 | 'label' => |
---|
2139 | array ( |
---|
2140 | 'format' => 'above', |
---|
2141 | ), |
---|
2142 | 'teaser' => |
---|
2143 | array ( |
---|
2144 | 'format' => 'default', |
---|
2145 | 'exclude' => 0, |
---|
2146 | ), |
---|
2147 | 'full' => |
---|
2148 | array ( |
---|
2149 | 'format' => 'hidden', |
---|
2150 | 'exclude' => 0, |
---|
2151 | ), |
---|
2152 | 4 => |
---|
2153 | array ( |
---|
2154 | 'format' => 'default', |
---|
2155 | 'exclude' => 0, |
---|
2156 | ), |
---|
2157 | 'modal' => |
---|
2158 | array ( |
---|
2159 | 'format' => 'default', |
---|
2160 | 'exclude' => 0, |
---|
2161 | ), |
---|
2162 | 'inline' => |
---|
2163 | array ( |
---|
2164 | 'format' => 'default', |
---|
2165 | 'exclude' => 0, |
---|
2166 | ), |
---|
2167 | 'token' => |
---|
2168 | array ( |
---|
2169 | 'format' => 'default', |
---|
2170 | 'exclude' => 0, |
---|
2171 | ), |
---|
2172 | ), |
---|
2173 | ); |
---|
2174 | $content['fields'][] = array ( |
---|
2175 | 'label' => 'Ente', |
---|
2176 | 'field_name' => 'field_acciones_ente', |
---|
2177 | 'type_name' => 'accion_centralizada', |
---|
2178 | 'type' => 'nodereference', |
---|
2179 | 'widget_type' => 'nodereference_select', |
---|
2180 | 'change' => 'Change basic information', |
---|
2181 | 'weight' => '48', |
---|
2182 | 'autocomplete_match' => 'contains', |
---|
2183 | 'size' => 60, |
---|
2184 | 'description' => '', |
---|
2185 | 'default_value' => |
---|
2186 | array ( |
---|
2187 | 0 => |
---|
2188 | array ( |
---|
2189 | 'nid' => '', |
---|
2190 | ), |
---|
2191 | ), |
---|
2192 | 'default_value_php' => '', |
---|
2193 | 'default_value_widget' => |
---|
2194 | array ( |
---|
2195 | 'field_acciones_ente' => |
---|
2196 | array ( |
---|
2197 | 0 => |
---|
2198 | array ( |
---|
2199 | 'nid' => '', |
---|
2200 | ), |
---|
2201 | 'nid' => |
---|
2202 | array ( |
---|
2203 | 'nid' => '', |
---|
2204 | ), |
---|
2205 | ), |
---|
2206 | ), |
---|
2207 | 'group' => false, |
---|
2208 | 'required' => 1, |
---|
2209 | 'multiple' => '0', |
---|
2210 | 'referenceable_types' => |
---|
2211 | array ( |
---|
2212 | 'ente_planificador' => 'ente_planificador', |
---|
2213 | 'accion_centralizada' => 0, |
---|
2214 | 'causas' => 0, |
---|
2215 | 'ente_institucional' => 0, |
---|
2216 | 'necesidades' => 0, |
---|
2217 | 'objetivos_estrategicos' => 0, |
---|
2218 | 'page' => 0, |
---|
2219 | 'proyecto_estrategico' => 0, |
---|
2220 | 'descriptores' => 0, |
---|
2221 | 'story' => 0, |
---|
2222 | 'situacion_actual_preliminar' => 0, |
---|
2223 | 'enlacess' => 0, |
---|
2224 | 'ente_funciones' => 0, |
---|
2225 | 'nuevo' => 0, |
---|
2226 | 'pruebas' => 0, |
---|
2227 | 'nnnn' => false, |
---|
2228 | 't1' => false, |
---|
2229 | ), |
---|
2230 | 'advanced_view' => '--', |
---|
2231 | 'advanced_view_args' => '', |
---|
2232 | 'op' => 'Guardar configuraciones del campo', |
---|
2233 | 'module' => 'nodereference', |
---|
2234 | 'widget_module' => 'nodereference', |
---|
2235 | 'columns' => |
---|
2236 | array ( |
---|
2237 | 'nid' => |
---|
2238 | array ( |
---|
2239 | 'type' => 'int', |
---|
2240 | 'unsigned' => true, |
---|
2241 | 'not null' => false, |
---|
2242 | 'index' => true, |
---|
2243 | ), |
---|
2244 | ), |
---|
2245 | 'display_settings' => |
---|
2246 | array ( |
---|
2247 | 'weight' => '48', |
---|
2248 | 'parent' => '', |
---|
2249 | 'label' => |
---|
2250 | array ( |
---|
2251 | 'format' => 'above', |
---|
2252 | ), |
---|
2253 | 'teaser' => |
---|
2254 | array ( |
---|
2255 | 'format' => 'default', |
---|
2256 | 'exclude' => 0, |
---|
2257 | ), |
---|
2258 | 'full' => |
---|
2259 | array ( |
---|
2260 | 'format' => 'default', |
---|
2261 | 'exclude' => 0, |
---|
2262 | ), |
---|
2263 | 4 => |
---|
2264 | array ( |
---|
2265 | 'format' => 'default', |
---|
2266 | 'exclude' => 0, |
---|
2267 | ), |
---|
2268 | 'modal' => |
---|
2269 | array ( |
---|
2270 | 'format' => 'default', |
---|
2271 | 'exclude' => 0, |
---|
2272 | ), |
---|
2273 | 'inline' => |
---|
2274 | array ( |
---|
2275 | 'format' => 'default', |
---|
2276 | 'exclude' => 0, |
---|
2277 | ), |
---|
2278 | 'token' => |
---|
2279 | array ( |
---|
2280 | 'format' => 'default', |
---|
2281 | 'exclude' => 0, |
---|
2282 | ), |
---|
2283 | ), |
---|
2284 | ); |
---|
2285 | return $content; |
---|
2286 | } |
---|