1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana |
---|
5 | * @file politicas_direccionales.install |
---|
6 | * Drupal part Module to code ente planificador module |
---|
7 | * Copyright 2011 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-12-19 // (año-mes-dia) |
---|
25 | * @version 0.2 // (0.2) |
---|
26 | * |
---|
27 | */ |
---|
28 | |
---|
29 | /* |
---|
30 | * Implementation of hook_install() |
---|
31 | */ |
---|
32 | function politicas_direccionales_install() { |
---|
33 | drupal_install_schema('politicas_direccionales'); |
---|
34 | // Notify content module when this module is uninstalled. |
---|
35 | drupal_load('module', 'content'); |
---|
36 | content_notify('install', 'politicas_direccionales'); |
---|
37 | } |
---|
38 | |
---|
39 | /* |
---|
40 | * Implementation of hook_uninstall() |
---|
41 | */ |
---|
42 | function politicas_direccionales_uninstall() { |
---|
43 | drupal_uninstall_schema('politicas_direccionales'); |
---|
44 | // Notify content module when this module is uninstalled. |
---|
45 | include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc'); |
---|
46 | _politicas_direccionales_install_type_remove_field(); |
---|
47 | content_notify('uninstall', 'politicas_direccionales'); |
---|
48 | } |
---|
49 | |
---|
50 | /* |
---|
51 | * Implementation of hook_schema |
---|
52 | */ |
---|
53 | function politicas_direccionales_schema() { |
---|
54 | $schema = array(); |
---|
55 | $schema['politicas_ente'] = array( |
---|
56 | 'description' => 'Ente planificador.', |
---|
57 | 'fields' => array( |
---|
58 | 'nid' => array( |
---|
59 | 'description' => 'el nid de la politica.', |
---|
60 | 'type' => 'int', |
---|
61 | 'unsigned' => TRUE, |
---|
62 | 'not null' => TRUE, |
---|
63 | 'default' => 0, |
---|
64 | ), |
---|
65 | 'vid' => array( |
---|
66 | 'description' => 'el vid de la politica.', |
---|
67 | 'type' => 'int', |
---|
68 | 'unsigned' => TRUE, |
---|
69 | 'not null' => TRUE, |
---|
70 | 'default' => 0, |
---|
71 | ), |
---|
72 | 'delta' => array( |
---|
73 | 'description' => 'el delta del requerimiento.', |
---|
74 | 'type' => 'int', |
---|
75 | 'unsigned' => TRUE, |
---|
76 | 'not null' => TRUE, |
---|
77 | 'default' => 0, |
---|
78 | ), |
---|
79 | 'requerimiento' => array( |
---|
80 | 'description' => 'Nombre del requerimiento.', |
---|
81 | 'type' => 'varchar', |
---|
82 | 'length' => 250, |
---|
83 | 'not null' => TRUE, |
---|
84 | 'default' => '', |
---|
85 | ), |
---|
86 | 'tipo' => array( |
---|
87 | 'description' => 'Tipo de requerimiento.', |
---|
88 | 'type' => 'varchar', |
---|
89 | 'length' => 1, |
---|
90 | 'not null' => TRUE, |
---|
91 | 'default' => '', |
---|
92 | ), |
---|
93 | ), |
---|
94 | 'indexes' => array( |
---|
95 | 'nid' => array('nid'), |
---|
96 | 'nid_vid' => array('nid', 'vid'), |
---|
97 | ), |
---|
98 | ); |
---|
99 | $schema['politicas_ente_actor'] = array( |
---|
100 | 'description' => 'Ente planificador.', |
---|
101 | 'fields' => array( |
---|
102 | 'nid' => array( |
---|
103 | 'description' => 'el nid de la politica.', |
---|
104 | 'type' => 'int', |
---|
105 | 'unsigned' => TRUE, |
---|
106 | 'not null' => TRUE, |
---|
107 | 'default' => 0, |
---|
108 | ), |
---|
109 | 'vid' => array( |
---|
110 | 'description' => 'el vid de la politica.', |
---|
111 | 'type' => 'int', |
---|
112 | 'unsigned' => TRUE, |
---|
113 | 'not null' => TRUE, |
---|
114 | 'default' => 0, |
---|
115 | ), |
---|
116 | 'delta' => array( |
---|
117 | 'description' => 'el delta del requerimiento.', |
---|
118 | 'type' => 'int', |
---|
119 | 'unsigned' => TRUE, |
---|
120 | 'not null' => FALSE, |
---|
121 | 'default' => 0, |
---|
122 | ), |
---|
123 | 'delta1' => array( |
---|
124 | 'description' => 'el delta del ente requerimiento.', |
---|
125 | 'type' => 'int', |
---|
126 | 'unsigned' => TRUE, |
---|
127 | 'not null' => FALSE, |
---|
128 | 'default' => 0, |
---|
129 | ), |
---|
130 | 'ente' => array( |
---|
131 | 'description' => 'el delta del ente requerimiento.', |
---|
132 | 'type' => 'int', |
---|
133 | 'unsigned' => TRUE, |
---|
134 | 'not null' => FALSE, |
---|
135 | 'default' => 0, |
---|
136 | ), |
---|
137 | 'otro_ente' => array( |
---|
138 | 'description' => 'Nombre del requerimiento.', |
---|
139 | 'type' => 'varchar', |
---|
140 | 'length' => 250, |
---|
141 | 'not null' => TRUE, |
---|
142 | 'default' => '', |
---|
143 | ), |
---|
144 | 'grado' => array( |
---|
145 | 'description' => 'Grado.', |
---|
146 | 'type' => 'float', |
---|
147 | 'unsigned' => TRUE, |
---|
148 | 'not null' => FALSE, |
---|
149 | 'default' => 0, |
---|
150 | ), |
---|
151 | ), |
---|
152 | 'indexes' => array( |
---|
153 | 'nid' => array('nid'), |
---|
154 | 'nid_vid' => array('nid', 'vid'), |
---|
155 | ), |
---|
156 | ); |
---|
157 | $schema['politicas_direccionales_estrategias'] = array( |
---|
158 | 'description' => 'Politicas direccionales estrategias.', |
---|
159 | 'fields' => array( |
---|
160 | 'ente' => array( |
---|
161 | 'description' => 'el nid de la politica.', |
---|
162 | 'type' => 'int', |
---|
163 | 'unsigned' => TRUE, |
---|
164 | 'not null' => TRUE, |
---|
165 | 'default' => 0, |
---|
166 | ), |
---|
167 | 'estrategia' => array( |
---|
168 | 'description' => 'el vid de la politica.', |
---|
169 | 'type' => 'int', |
---|
170 | 'unsigned' => TRUE, |
---|
171 | 'not null' => TRUE, |
---|
172 | 'default' => 0, |
---|
173 | ), |
---|
174 | 'ente_art' => array( |
---|
175 | 'description' => 'el delta del requerimiento.', |
---|
176 | 'type' => 'int', |
---|
177 | 'unsigned' => TRUE, |
---|
178 | 'not null' => FALSE, |
---|
179 | 'default' => 0, |
---|
180 | ), |
---|
181 | 'estrategia_art' => array( |
---|
182 | 'description' => 'el delta del ente requerimiento.', |
---|
183 | 'type' => 'int', |
---|
184 | 'unsigned' => TRUE, |
---|
185 | 'not null' => FALSE, |
---|
186 | 'default' => 0, |
---|
187 | ), |
---|
188 | 'creacion' => array( |
---|
189 | 'description' => 'el delta del ente requerimiento.', |
---|
190 | 'type' => 'int', |
---|
191 | 'unsigned' => TRUE, |
---|
192 | 'not null' => FALSE, |
---|
193 | 'default' => 0, |
---|
194 | ), |
---|
195 | 'mensaje' => array( |
---|
196 | 'type' => 'text', |
---|
197 | 'size' => 'big', |
---|
198 | 'not null' => TRUE, |
---|
199 | 'default' => '', |
---|
200 | ), |
---|
201 | ), |
---|
202 | 'indexes' => array( |
---|
203 | 'ente' => array('ente'), |
---|
204 | 'ente' => array('estrategia'), |
---|
205 | 'ente_estrategia' => array('ente', 'estrategia'), |
---|
206 | 'ente_art' => array('ente_art'), |
---|
207 | 'estrategia_art' => array('estrategia_art'), |
---|
208 | 'ente_art_estrategia_art' => array('ente_art', 'estrategia_art'), |
---|
209 | 'creacion' => array('creacion'), |
---|
210 | ), |
---|
211 | ); |
---|
212 | return $schema; |
---|
213 | } |
---|
214 | |
---|
215 | |
---|
216 | /* |
---|
217 | * Implementation of hook_enable() |
---|
218 | */ |
---|
219 | function politicas_direccionales_enable() { |
---|
220 | // Notify content module when this module is uninstalled. |
---|
221 | drupal_load('module', 'content'); |
---|
222 | content_notify('enable', 'politicas_direccionales'); |
---|
223 | include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc'); |
---|
224 | _politicas_direccionales_install_type_create_field(); |
---|
225 | } |
---|
226 | |
---|
227 | /* |
---|
228 | * Implementation of hook_disable() |
---|
229 | */ |
---|
230 | function politicas_direccionales_preliminar_disable() { |
---|
231 | drupal_load('module', 'content'); |
---|
232 | content_notify('disable', 'politicas_direccionales'); |
---|
233 | } |
---|
234 | |
---|
235 | /* |
---|
236 | * _politicas_direccionales_install_type_remove_field |
---|
237 | * Crear los tipos de contenidos necesarios para el funcionamiento del modulo |
---|
238 | */ |
---|
239 | function _politicas_direccionales_install_type_remove_field() { |
---|
240 | // Load fields. |
---|
241 | $politicas_direccionales_fields = _politicas_direccionales_load_fields(); |
---|
242 | $remove_field = FALSE; |
---|
243 | foreach ($politicas_direccionales_fields['fields'] as $politicas_direccionales_inserts) { |
---|
244 | $instances = content_field_instance_read(array( |
---|
245 | 'field_name' => $politicas_direccionales_inserts['field_name'], |
---|
246 | 'type_name' => $politicas_direccionales_inserts['type_name'] |
---|
247 | )); |
---|
248 | if (count($instances)) { |
---|
249 | $remove_field = TRUE; |
---|
250 | // Only remove the field if it exist. |
---|
251 | content_field_instance_delete($politicas_direccionales_inserts['field_name'], $politicas_direccionales_inserts['type_name']); |
---|
252 | drupal_set_message( |
---|
253 | t("Removed field %typefield in content type %typecontent", |
---|
254 | array( |
---|
255 | '%typefield' => $politicas_direccionales_inserts['label'], |
---|
256 | '%typecontent' => $politicas_direccionales_inserts['type_name'] |
---|
257 | ) |
---|
258 | )); |
---|
259 | } |
---|
260 | } |
---|
261 | if ($remove_field) { |
---|
262 | content_clear_type_cache(TRUE); |
---|
263 | menu_rebuild(); |
---|
264 | } |
---|
265 | } |
---|
266 | |
---|
267 | |
---|
268 | /* |
---|
269 | * _politicas_direccionales_install_type_create_field |
---|
270 | * Crear los tipos de contenidos necesarios para el funcionamiento del modulo |
---|
271 | */ |
---|
272 | function _politicas_direccionales_install_type_create_field() { |
---|
273 | // Load fields. |
---|
274 | $politicas_direccionales_fields = _politicas_direccionales_load_fields(); |
---|
275 | $create_field = FALSE; |
---|
276 | foreach ($politicas_direccionales_fields['fields'] as $politicas_direccionales_inserts) { |
---|
277 | $instances = content_field_instance_read(array( |
---|
278 | 'field_name' => $politicas_direccionales_inserts['field_name'], |
---|
279 | 'type_name' => $politicas_direccionales_inserts['type_name'] |
---|
280 | )); |
---|
281 | if (count($instances) < 1) { |
---|
282 | $create_field = TRUE; |
---|
283 | // Only add the field if it doesn't exist. Don't overwrite any changes. |
---|
284 | content_field_instance_create($politicas_direccionales_inserts); |
---|
285 | drupal_set_message( |
---|
286 | t("Saved field %typefield in content type %typecontent", |
---|
287 | array( |
---|
288 | '%typefield' => $politicas_direccionales_inserts['label'], |
---|
289 | '%typecontent' => $politicas_direccionales_inserts['type_name'] |
---|
290 | ) |
---|
291 | )); |
---|
292 | } |
---|
293 | } |
---|
294 | if ($create_field) { |
---|
295 | content_clear_type_cache(TRUE); |
---|
296 | menu_rebuild(); |
---|
297 | } |
---|
298 | } |
---|
299 | |
---|
300 | |
---|
301 | /* |
---|
302 | * _politicas_direccionales_load_fields |
---|
303 | * Fields definitions |
---|
304 | */ |
---|
305 | function _politicas_direccionales_load_fields() { |
---|
306 | $content = array(); |
---|
307 | $content['fields'] = array(); |
---|
308 | //SE AGREGAN LOS CAMPOS DE POLITICAS DIRECCIONALES |
---|
309 | $content['fields'][] = array ( |
---|
310 | 'label' => 'Causas CrÃticas', |
---|
311 | 'type_name' => 'politicas_direccionales', |
---|
312 | 'field_name' => 'field_politicas_causas', |
---|
313 | 'type' => 'nodereference', |
---|
314 | 'widget_type' => 'nodereference_select', |
---|
315 | 'change' => 'Cambiar información básica', |
---|
316 | 'weight' => '31', |
---|
317 | 'autocomplete_match' => 'contains', |
---|
318 | 'size' => 60, |
---|
319 | 'description' => '', |
---|
320 | 'default_value' => |
---|
321 | array ( |
---|
322 | 0 => |
---|
323 | array ( |
---|
324 | 'nid' => '', |
---|
325 | ), |
---|
326 | ), |
---|
327 | 'default_value_php' => '', |
---|
328 | 'default_value_widget' => NULL, |
---|
329 | 'required' => 1, |
---|
330 | 'multiple' => '1', |
---|
331 | 'referenceable_types' => |
---|
332 | array ( |
---|
333 | 'causas' => 'causas', |
---|
334 | 'situacion_ideal' => 0, |
---|
335 | 'ente_planificador' => 0, |
---|
336 | 'page' => 0, |
---|
337 | 'politicas_direccionales' => 0, |
---|
338 | 'direccionales' => 0, |
---|
339 | 'descriptores' => 0, |
---|
340 | 'story' => 0, |
---|
341 | 'situacion_actual_preliminar' => 0, |
---|
342 | 'webform' => 0, |
---|
343 | 'estrategia' => false, |
---|
344 | ), |
---|
345 | 'advanced_view' => '--', |
---|
346 | 'advanced_view_args' => '', |
---|
347 | 'op' => 'Guardar opciones de campo', |
---|
348 | 'module' => 'nodereference', |
---|
349 | 'widget_module' => 'nodereference', |
---|
350 | 'columns' => |
---|
351 | array ( |
---|
352 | 'nid' => |
---|
353 | array ( |
---|
354 | 'type' => 'int', |
---|
355 | 'unsigned' => true, |
---|
356 | 'not null' => false, |
---|
357 | 'index' => true, |
---|
358 | ), |
---|
359 | ), |
---|
360 | 'display_settings' => |
---|
361 | array ( |
---|
362 | 'weight' => '31', |
---|
363 | 'parent' => '', |
---|
364 | 'label' => |
---|
365 | array ( |
---|
366 | 'format' => 'above', |
---|
367 | ), |
---|
368 | 'teaser' => |
---|
369 | array ( |
---|
370 | 'format' => 'default', |
---|
371 | 'exclude' => 0, |
---|
372 | ), |
---|
373 | 'full' => |
---|
374 | array ( |
---|
375 | 'format' => 'plain', |
---|
376 | 'exclude' => 0, |
---|
377 | ), |
---|
378 | 4 => |
---|
379 | array ( |
---|
380 | 'format' => 'default', |
---|
381 | 'exclude' => 0, |
---|
382 | ), |
---|
383 | 'modal' => |
---|
384 | array ( |
---|
385 | 'format' => 'default', |
---|
386 | 'exclude' => 0, |
---|
387 | ), |
---|
388 | 'inline' => |
---|
389 | array ( |
---|
390 | 'format' => 'default', |
---|
391 | 'exclude' => 0, |
---|
392 | ), |
---|
393 | 'token' => |
---|
394 | array ( |
---|
395 | 'format' => 'default', |
---|
396 | 'exclude' => 0, |
---|
397 | ), |
---|
398 | ), |
---|
399 | ); |
---|
400 | |
---|
401 | $content['fields'][] = array ( |
---|
402 | 'label' => 'Objetivo General', |
---|
403 | 'type_name' => 'politicas_direccionales', |
---|
404 | 'field_name' => 'field_politicas_objetivog', |
---|
405 | 'type' => 'text', |
---|
406 | 'widget_type' => 'text_textarea', |
---|
407 | 'change' => 'Cambiar información básica', |
---|
408 | 'weight' => '32', |
---|
409 | 'rows' => '5', |
---|
410 | 'size' => 60, |
---|
411 | 'description' => '', |
---|
412 | 'default_value' => |
---|
413 | array ( |
---|
414 | 0 => |
---|
415 | array ( |
---|
416 | 'value' => '', |
---|
417 | '_error_element' => 'default_value_widget][field_politicas_objetivog][0][value', |
---|
418 | ), |
---|
419 | ), |
---|
420 | 'default_value_php' => '', |
---|
421 | 'default_value_widget' => |
---|
422 | array ( |
---|
423 | 'field_politicas_objetivog' => |
---|
424 | array ( |
---|
425 | 0 => |
---|
426 | array ( |
---|
427 | 'value' => '', |
---|
428 | '_error_element' => 'default_value_widget][field_politicas_objetivog][0][value', |
---|
429 | ), |
---|
430 | ), |
---|
431 | ), |
---|
432 | 'required' => 1, |
---|
433 | 'multiple' => '0', |
---|
434 | 'text_processing' => '0', |
---|
435 | 'max_length' => '', |
---|
436 | 'allowed_values' => '', |
---|
437 | 'allowed_values_php' => '', |
---|
438 | 'op' => 'Guardar opciones de campo', |
---|
439 | 'module' => 'text', |
---|
440 | 'widget_module' => 'text', |
---|
441 | 'columns' => |
---|
442 | array ( |
---|
443 | 'value' => |
---|
444 | array ( |
---|
445 | 'type' => 'text', |
---|
446 | 'size' => 'big', |
---|
447 | 'not null' => false, |
---|
448 | 'sortable' => true, |
---|
449 | 'views' => true, |
---|
450 | ), |
---|
451 | ), |
---|
452 | 'display_settings' => |
---|
453 | array ( |
---|
454 | 'weight' => '32', |
---|
455 | 'parent' => '', |
---|
456 | 'label' => |
---|
457 | array ( |
---|
458 | 'format' => 'above', |
---|
459 | ), |
---|
460 | 'teaser' => |
---|
461 | array ( |
---|
462 | 'format' => 'default', |
---|
463 | 'exclude' => 0, |
---|
464 | ), |
---|
465 | 'full' => |
---|
466 | array ( |
---|
467 | 'format' => 'plain', |
---|
468 | 'exclude' => 0, |
---|
469 | ), |
---|
470 | 4 => |
---|
471 | array ( |
---|
472 | 'format' => 'default', |
---|
473 | 'exclude' => 0, |
---|
474 | ), |
---|
475 | 'modal' => |
---|
476 | array ( |
---|
477 | 'format' => 'default', |
---|
478 | 'exclude' => 0, |
---|
479 | ), |
---|
480 | 'inline' => |
---|
481 | array ( |
---|
482 | 'format' => 'default', |
---|
483 | 'exclude' => 0, |
---|
484 | ), |
---|
485 | 'token' => |
---|
486 | array ( |
---|
487 | 'format' => 'default', |
---|
488 | 'exclude' => 0, |
---|
489 | ), |
---|
490 | ), |
---|
491 | ); |
---|
492 | |
---|
493 | $content['fields'][] = array ( |
---|
494 | 'label' => 'Objetivos EspecÃficos', |
---|
495 | 'type_name' => 'politicas_direccionales', |
---|
496 | 'field_name' => 'field_politicas_objetivoe', |
---|
497 | 'type' => 'text', |
---|
498 | 'widget_type' => 'text_textarea', |
---|
499 | 'change' => 'Cambiar información básica', |
---|
500 | 'weight' => '33', |
---|
501 | 'rows' => '5', |
---|
502 | 'size' => 60, |
---|
503 | 'description' => '', |
---|
504 | 'default_value' => |
---|
505 | array ( |
---|
506 | 0 => |
---|
507 | array ( |
---|
508 | 'value' => '', |
---|
509 | '_error_element' => 'default_value_widget][field_politicas_objetivoe][0][value', |
---|
510 | ), |
---|
511 | ), |
---|
512 | 'default_value_php' => '', |
---|
513 | 'default_value_widget' => |
---|
514 | array ( |
---|
515 | 'field_politicas_objetivoe' => |
---|
516 | array ( |
---|
517 | 0 => |
---|
518 | array ( |
---|
519 | 'value' => '', |
---|
520 | '_error_element' => 'default_value_widget][field_politicas_objetivoe][0][value', |
---|
521 | ), |
---|
522 | ), |
---|
523 | ), |
---|
524 | 'required' => 1, |
---|
525 | 'multiple' => '1', |
---|
526 | 'text_processing' => '0', |
---|
527 | 'max_length' => '', |
---|
528 | 'allowed_values' => '', |
---|
529 | 'allowed_values_php' => '', |
---|
530 | 'op' => 'Guardar opciones de campo', |
---|
531 | 'module' => 'text', |
---|
532 | 'widget_module' => 'text', |
---|
533 | 'columns' => |
---|
534 | array ( |
---|
535 | 'value' => |
---|
536 | array ( |
---|
537 | 'type' => 'text', |
---|
538 | 'size' => 'big', |
---|
539 | 'not null' => false, |
---|
540 | 'sortable' => true, |
---|
541 | 'views' => true, |
---|
542 | ), |
---|
543 | ), |
---|
544 | 'display_settings' => |
---|
545 | array ( |
---|
546 | 'weight' => '33', |
---|
547 | 'parent' => '', |
---|
548 | 'label' => |
---|
549 | array ( |
---|
550 | 'format' => 'above', |
---|
551 | ), |
---|
552 | 'teaser' => |
---|
553 | array ( |
---|
554 | 'format' => 'default', |
---|
555 | 'exclude' => 0, |
---|
556 | ), |
---|
557 | 'full' => |
---|
558 | array ( |
---|
559 | 'format' => 'plain', |
---|
560 | 'exclude' => 0, |
---|
561 | ), |
---|
562 | 4 => |
---|
563 | array ( |
---|
564 | 'format' => 'default', |
---|
565 | 'exclude' => 0, |
---|
566 | ), |
---|
567 | 'modal' => |
---|
568 | array ( |
---|
569 | 'format' => 'default', |
---|
570 | 'exclude' => 0, |
---|
571 | ), |
---|
572 | 'inline' => |
---|
573 | array ( |
---|
574 | 'format' => 'default', |
---|
575 | 'exclude' => 0, |
---|
576 | ), |
---|
577 | 'token' => |
---|
578 | array ( |
---|
579 | 'format' => 'default', |
---|
580 | 'exclude' => 0, |
---|
581 | ), |
---|
582 | ), |
---|
583 | ); |
---|
584 | |
---|
585 | $content['fields'][] = array ( |
---|
586 | 'label' => 'Ãreas de impacto', |
---|
587 | 'type_name' => 'politicas_direccionales', |
---|
588 | 'field_name' => 'field_politicas_areasimp', |
---|
589 | 'type' => 'text', |
---|
590 | 'widget_type' => 'text_textarea', |
---|
591 | 'change' => 'Cambiar información básica', |
---|
592 | 'weight' => '41', |
---|
593 | 'rows' => '5', |
---|
594 | 'size' => 60, |
---|
595 | 'description' => '', |
---|
596 | 'default_value' => |
---|
597 | array ( |
---|
598 | 0 => |
---|
599 | array ( |
---|
600 | 'value' => '', |
---|
601 | '_error_element' => 'default_value_widget][field_politicas_areasimp][0][value', |
---|
602 | ), |
---|
603 | ), |
---|
604 | 'default_value_php' => '', |
---|
605 | 'default_value_widget' => |
---|
606 | array ( |
---|
607 | 'field_politicas_areasimp' => |
---|
608 | array ( |
---|
609 | 0 => |
---|
610 | array ( |
---|
611 | 'value' => '', |
---|
612 | '_error_element' => 'default_value_widget][field_politicas_areasimp][0][value', |
---|
613 | ), |
---|
614 | ), |
---|
615 | ), |
---|
616 | 'required' => 1, |
---|
617 | 'multiple' => '1', |
---|
618 | 'text_processing' => '0', |
---|
619 | 'max_length' => '', |
---|
620 | 'allowed_values' => '', |
---|
621 | 'allowed_values_php' => '', |
---|
622 | 'op' => 'Guardar opciones de campo', |
---|
623 | 'module' => 'text', |
---|
624 | 'widget_module' => 'text', |
---|
625 | 'columns' => |
---|
626 | array ( |
---|
627 | 'value' => |
---|
628 | array ( |
---|
629 | 'type' => 'text', |
---|
630 | 'size' => 'big', |
---|
631 | 'not null' => false, |
---|
632 | 'sortable' => true, |
---|
633 | 'views' => true, |
---|
634 | ), |
---|
635 | ), |
---|
636 | 'display_settings' => |
---|
637 | array ( |
---|
638 | 'weight' => '41', |
---|
639 | 'parent' => '', |
---|
640 | 'label' => |
---|
641 | array ( |
---|
642 | 'format' => 'above', |
---|
643 | ), |
---|
644 | 'teaser' => |
---|
645 | array ( |
---|
646 | 'format' => 'default', |
---|
647 | 'exclude' => 0, |
---|
648 | ), |
---|
649 | 'full' => |
---|
650 | array ( |
---|
651 | 'format' => 'plain', |
---|
652 | 'exclude' => 0, |
---|
653 | ), |
---|
654 | 4 => |
---|
655 | array ( |
---|
656 | 'format' => 'default', |
---|
657 | 'exclude' => 0, |
---|
658 | ), |
---|
659 | 'modal' => |
---|
660 | array ( |
---|
661 | 'format' => 'default', |
---|
662 | 'exclude' => 0, |
---|
663 | ), |
---|
664 | 'inline' => |
---|
665 | array ( |
---|
666 | 'format' => 'default', |
---|
667 | 'exclude' => 0, |
---|
668 | ), |
---|
669 | 'token' => |
---|
670 | array ( |
---|
671 | 'format' => 'default', |
---|
672 | 'exclude' => 0, |
---|
673 | ), |
---|
674 | ), |
---|
675 | ); |
---|
676 | |
---|
677 | $content['fields'][] = array ( |
---|
678 | 'label' => 'Ente Planificador', |
---|
679 | 'type_name' => 'politicas_direccionales', |
---|
680 | 'field_name' => 'field_politicas_ente', |
---|
681 | 'type' => 'nodereference', |
---|
682 | 'widget_type' => 'nodereference_select', |
---|
683 | 'change' => 'Cambiar información básica', |
---|
684 | 'weight' => '42', |
---|
685 | 'autocomplete_match' => 'contains', |
---|
686 | 'size' => 60, |
---|
687 | 'description' => '', |
---|
688 | 'default_value' => |
---|
689 | array ( |
---|
690 | 0 => |
---|
691 | array ( |
---|
692 | 'nid' => '', |
---|
693 | ), |
---|
694 | ), |
---|
695 | 'default_value_php' => '', |
---|
696 | 'default_value_widget' => |
---|
697 | array ( |
---|
698 | 'field_politicas_ente' => |
---|
699 | array ( |
---|
700 | 0 => |
---|
701 | array ( |
---|
702 | 'nid' => '', |
---|
703 | ), |
---|
704 | 'nid' => |
---|
705 | array ( |
---|
706 | 'nid' => '', |
---|
707 | ), |
---|
708 | ), |
---|
709 | ), |
---|
710 | 'required' => 1, |
---|
711 | 'multiple' => '0', |
---|
712 | 'referenceable_types' => |
---|
713 | array ( |
---|
714 | 'ente_planificador' => 'ente_planificador', |
---|
715 | 'causas' => 0, |
---|
716 | 'situacion_ideal' => 0, |
---|
717 | 'page' => 0, |
---|
718 | 'politicas_direccionales' => 0, |
---|
719 | 'direccionales' => 0, |
---|
720 | 'descriptores' => 0, |
---|
721 | 'story' => 0, |
---|
722 | 'situacion_actual_preliminar' => 0, |
---|
723 | 'webform' => 0, |
---|
724 | 'estrategia' => false, |
---|
725 | ), |
---|
726 | 'advanced_view' => '--', |
---|
727 | 'advanced_view_args' => '', |
---|
728 | 'op' => 'Guardar opciones de campo', |
---|
729 | 'module' => 'nodereference', |
---|
730 | 'widget_module' => 'nodereference', |
---|
731 | 'columns' => |
---|
732 | array ( |
---|
733 | 'nid' => |
---|
734 | array ( |
---|
735 | 'type' => 'int', |
---|
736 | 'unsigned' => true, |
---|
737 | 'not null' => false, |
---|
738 | 'index' => true, |
---|
739 | ), |
---|
740 | ), |
---|
741 | 'display_settings' => |
---|
742 | array ( |
---|
743 | 'weight' => '42', |
---|
744 | 'parent' => '', |
---|
745 | 'label' => |
---|
746 | array ( |
---|
747 | 'format' => 'above', |
---|
748 | ), |
---|
749 | 'teaser' => |
---|
750 | array ( |
---|
751 | 'format' => 'default', |
---|
752 | 'exclude' => 0, |
---|
753 | ), |
---|
754 | 'full' => |
---|
755 | array ( |
---|
756 | 'format' => 'plain', |
---|
757 | 'exclude' => 0, |
---|
758 | ), |
---|
759 | 4 => |
---|
760 | array ( |
---|
761 | 'format' => 'default', |
---|
762 | 'exclude' => 0, |
---|
763 | ), |
---|
764 | 'modal' => |
---|
765 | array ( |
---|
766 | 'format' => 'default', |
---|
767 | 'exclude' => 0, |
---|
768 | ), |
---|
769 | 'inline' => |
---|
770 | array ( |
---|
771 | 'format' => 'default', |
---|
772 | 'exclude' => 0, |
---|
773 | ), |
---|
774 | 'token' => |
---|
775 | array ( |
---|
776 | 'format' => 'default', |
---|
777 | 'exclude' => 0, |
---|
778 | ), |
---|
779 | ), |
---|
780 | ); |
---|
781 | |
---|
782 | $content['fields'][] = array ( |
---|
783 | 'label' => 'PolÃtica Viable', |
---|
784 | 'type_name' => 'politicas_direccionales', |
---|
785 | 'field_name' => 'field_politicas_viable', |
---|
786 | 'type' => 'text', |
---|
787 | 'widget_type' => 'optionwidgets_select', |
---|
788 | 'change' => 'Cambiar información básica', |
---|
789 | 'weight' => '43', |
---|
790 | 'description' => '', |
---|
791 | 'default_value' => |
---|
792 | array ( |
---|
793 | 0 => |
---|
794 | array ( |
---|
795 | 'value' => '', |
---|
796 | ), |
---|
797 | ), |
---|
798 | 'default_value_php' => '', |
---|
799 | 'default_value_widget' => |
---|
800 | array ( |
---|
801 | 'field_politicas_viable' => |
---|
802 | array ( |
---|
803 | 'value' => '', |
---|
804 | ), |
---|
805 | ), |
---|
806 | 'required' => 1, |
---|
807 | 'multiple' => '0', |
---|
808 | 'text_processing' => '0', |
---|
809 | 'max_length' => '', |
---|
810 | 'allowed_values' => 'NO|NO |
---|
811 | SÃ|SÃ', |
---|
812 | 'allowed_values_php' => '', |
---|
813 | 'op' => 'Guardar opciones de campo', |
---|
814 | 'module' => 'text', |
---|
815 | 'widget_module' => 'optionwidgets', |
---|
816 | 'columns' => |
---|
817 | array ( |
---|
818 | 'value' => |
---|
819 | array ( |
---|
820 | 'type' => 'text', |
---|
821 | 'size' => 'big', |
---|
822 | 'not null' => false, |
---|
823 | 'sortable' => true, |
---|
824 | 'views' => true, |
---|
825 | ), |
---|
826 | ), |
---|
827 | 'display_settings' => |
---|
828 | array ( |
---|
829 | 'weight' => '43', |
---|
830 | 'parent' => '', |
---|
831 | 'label' => |
---|
832 | array ( |
---|
833 | 'format' => 'above', |
---|
834 | ), |
---|
835 | 'teaser' => |
---|
836 | array ( |
---|
837 | 'format' => 'default', |
---|
838 | 'exclude' => 0, |
---|
839 | ), |
---|
840 | 'full' => |
---|
841 | array ( |
---|
842 | 'format' => 'plain', |
---|
843 | 'exclude' => 0, |
---|
844 | ), |
---|
845 | 4 => |
---|
846 | array ( |
---|
847 | 'format' => 'default', |
---|
848 | 'exclude' => 0, |
---|
849 | ), |
---|
850 | 'modal' => |
---|
851 | array ( |
---|
852 | 'format' => 'default', |
---|
853 | 'exclude' => 0, |
---|
854 | ), |
---|
855 | 'inline' => |
---|
856 | array ( |
---|
857 | 'format' => 'default', |
---|
858 | 'exclude' => 0, |
---|
859 | ), |
---|
860 | 'token' => |
---|
861 | array ( |
---|
862 | 'format' => 'default', |
---|
863 | 'exclude' => 0, |
---|
864 | ), |
---|
865 | ), |
---|
866 | ); |
---|
867 | |
---|
868 | $content['fields'][] = array ( |
---|
869 | 'label' => 'Requerimientos', |
---|
870 | 'type_name' => 'politicas_direccionales', |
---|
871 | 'field_name' => 'field_politicas_requerimientos', |
---|
872 | 'type' => 'text', |
---|
873 | 'widget_type' => 'text_textfield', |
---|
874 | 'change' => 'Cambiar información básica', |
---|
875 | 'weight' => '44', |
---|
876 | 'rows' => 5, |
---|
877 | 'size' => '60', |
---|
878 | 'description' => '', |
---|
879 | 'default_value' => |
---|
880 | array ( |
---|
881 | 0 => |
---|
882 | array ( |
---|
883 | 'value' => '', |
---|
884 | '_error_element' => 'default_value_widget][field_politicas_requerimientos][0][value', |
---|
885 | ), |
---|
886 | ), |
---|
887 | 'default_value_php' => '', |
---|
888 | 'default_value_widget' => |
---|
889 | array ( |
---|
890 | 'field_politicas_requerimientos' => |
---|
891 | array ( |
---|
892 | 0 => |
---|
893 | array ( |
---|
894 | 'value' => '', |
---|
895 | '_error_element' => 'default_value_widget][field_politicas_requerimientos][0][value', |
---|
896 | ), |
---|
897 | ), |
---|
898 | ), |
---|
899 | 'required' => 1, |
---|
900 | 'multiple' => '1', |
---|
901 | 'text_processing' => '0', |
---|
902 | 'max_length' => '255', |
---|
903 | 'allowed_values' => '', |
---|
904 | 'allowed_values_php' => '', |
---|
905 | 'op' => 'Guardar opciones de campo', |
---|
906 | 'module' => 'text', |
---|
907 | 'widget_module' => 'text', |
---|
908 | 'columns' => |
---|
909 | array ( |
---|
910 | 'value' => |
---|
911 | array ( |
---|
912 | 'type' => 'varchar', |
---|
913 | 'length' => '255', |
---|
914 | 'not null' => false, |
---|
915 | 'sortable' => true, |
---|
916 | 'views' => true, |
---|
917 | ), |
---|
918 | ), |
---|
919 | 'display_settings' => |
---|
920 | array ( |
---|
921 | 'weight' => '44', |
---|
922 | 'parent' => '', |
---|
923 | 'label' => |
---|
924 | array ( |
---|
925 | 'format' => 'above', |
---|
926 | ), |
---|
927 | 'teaser' => |
---|
928 | array ( |
---|
929 | 'format' => 'default', |
---|
930 | 'exclude' => 0, |
---|
931 | ), |
---|
932 | 'full' => |
---|
933 | array ( |
---|
934 | 'format' => 'plain', |
---|
935 | 'exclude' => 0, |
---|
936 | ), |
---|
937 | 4 => |
---|
938 | array ( |
---|
939 | 'format' => 'default', |
---|
940 | 'exclude' => 0, |
---|
941 | ), |
---|
942 | 'modal' => |
---|
943 | array ( |
---|
944 | 'format' => 'default', |
---|
945 | 'exclude' => 0, |
---|
946 | ), |
---|
947 | 'inline' => |
---|
948 | array ( |
---|
949 | 'format' => 'default', |
---|
950 | 'exclude' => 0, |
---|
951 | ), |
---|
952 | 'token' => |
---|
953 | array ( |
---|
954 | 'format' => 'default', |
---|
955 | 'exclude' => 0, |
---|
956 | ), |
---|
957 | ), |
---|
958 | ); |
---|
959 | |
---|
960 | $content['fields'][] = array ( |
---|
961 | 'label' => 'Acciones para Construir viabilidad', |
---|
962 | 'type_name' => 'politicas_direccionales', |
---|
963 | 'field_name' => 'field_politicas_acciones_viab', |
---|
964 | 'type' => 'text', |
---|
965 | 'widget_type' => 'text_textarea', |
---|
966 | 'change' => 'Cambiar información básica', |
---|
967 | 'weight' => '45', |
---|
968 | 'rows' => '5', |
---|
969 | 'size' => 60, |
---|
970 | 'description' => '', |
---|
971 | 'default_value' => |
---|
972 | array ( |
---|
973 | 0 => |
---|
974 | array ( |
---|
975 | 'value' => '', |
---|
976 | '_error_element' => 'default_value_widget][field_politicas_acciones_viab][0][value', |
---|
977 | ), |
---|
978 | ), |
---|
979 | 'default_value_php' => '', |
---|
980 | 'default_value_widget' => |
---|
981 | array ( |
---|
982 | 'field_politicas_acciones_viab' => |
---|
983 | array ( |
---|
984 | 0 => |
---|
985 | array ( |
---|
986 | 'value' => '', |
---|
987 | '_error_element' => 'default_value_widget][field_politicas_acciones_viab][0][value', |
---|
988 | ), |
---|
989 | ), |
---|
990 | ), |
---|
991 | 'required' => 1, |
---|
992 | 'multiple' => '1', |
---|
993 | 'text_processing' => '0', |
---|
994 | 'max_length' => '', |
---|
995 | 'allowed_values' => '', |
---|
996 | 'allowed_values_php' => '', |
---|
997 | 'op' => 'Guardar opciones de campo', |
---|
998 | 'module' => 'text', |
---|
999 | 'widget_module' => 'text', |
---|
1000 | 'columns' => |
---|
1001 | array ( |
---|
1002 | 'value' => |
---|
1003 | array ( |
---|
1004 | 'type' => 'text', |
---|
1005 | 'size' => 'big', |
---|
1006 | 'not null' => false, |
---|
1007 | 'sortable' => true, |
---|
1008 | 'views' => true, |
---|
1009 | ), |
---|
1010 | ), |
---|
1011 | 'display_settings' => |
---|
1012 | array ( |
---|
1013 | 'weight' => '45', |
---|
1014 | 'parent' => '', |
---|
1015 | 'label' => |
---|
1016 | array ( |
---|
1017 | 'format' => 'above', |
---|
1018 | ), |
---|
1019 | 'teaser' => |
---|
1020 | array ( |
---|
1021 | 'format' => 'default', |
---|
1022 | 'exclude' => 0, |
---|
1023 | ), |
---|
1024 | 'full' => |
---|
1025 | array ( |
---|
1026 | 'format' => 'plain', |
---|
1027 | 'exclude' => 0, |
---|
1028 | ), |
---|
1029 | 4 => |
---|
1030 | array ( |
---|
1031 | 'format' => 'default', |
---|
1032 | 'exclude' => 0, |
---|
1033 | ), |
---|
1034 | 'modal' => |
---|
1035 | array ( |
---|
1036 | 'format' => 'default', |
---|
1037 | 'exclude' => 0, |
---|
1038 | ), |
---|
1039 | 'inline' => |
---|
1040 | array ( |
---|
1041 | 'format' => 'default', |
---|
1042 | 'exclude' => 0, |
---|
1043 | ), |
---|
1044 | 'token' => |
---|
1045 | array ( |
---|
1046 | 'format' => 'default', |
---|
1047 | 'exclude' => 0, |
---|
1048 | ), |
---|
1049 | ), |
---|
1050 | ); |
---|
1051 | |
---|
1052 | $content['fields'][] = array ( |
---|
1053 | 'label' => 'Politica Seleccionada', |
---|
1054 | 'type_name' => 'politicas_direccionales', |
---|
1055 | 'field_name' => 'field_politicas_seleccionada', |
---|
1056 | 'type' => 'text', |
---|
1057 | 'widget_type' => 'optionwidgets_select', |
---|
1058 | 'change' => 'Cambiar información básica', |
---|
1059 | 'weight' => '46', |
---|
1060 | 'description' => '', |
---|
1061 | 'default_value' => |
---|
1062 | array ( |
---|
1063 | 0 => |
---|
1064 | array ( |
---|
1065 | 'value' => '', |
---|
1066 | ), |
---|
1067 | ), |
---|
1068 | 'default_value_php' => '', |
---|
1069 | 'default_value_widget' => |
---|
1070 | array ( |
---|
1071 | 'field_politicas_seleccionada' => |
---|
1072 | array ( |
---|
1073 | 'value' => '', |
---|
1074 | ), |
---|
1075 | ), |
---|
1076 | 'required' => 1, |
---|
1077 | 'multiple' => '0', |
---|
1078 | 'text_processing' => '0', |
---|
1079 | 'max_length' => '', |
---|
1080 | 'allowed_values' => 'NO|NO |
---|
1081 | SÃ|SÃ', |
---|
1082 | 'allowed_values_php' => '', |
---|
1083 | 'op' => 'Guardar opciones de campo', |
---|
1084 | 'module' => 'text', |
---|
1085 | 'widget_module' => 'optionwidgets', |
---|
1086 | 'columns' => |
---|
1087 | array ( |
---|
1088 | 'value' => |
---|
1089 | array ( |
---|
1090 | 'type' => 'text', |
---|
1091 | 'size' => 'big', |
---|
1092 | 'not null' => false, |
---|
1093 | 'sortable' => true, |
---|
1094 | 'views' => true, |
---|
1095 | ), |
---|
1096 | ), |
---|
1097 | 'display_settings' => |
---|
1098 | array ( |
---|
1099 | 'weight' => '46', |
---|
1100 | 'parent' => '', |
---|
1101 | 'label' => |
---|
1102 | array ( |
---|
1103 | 'format' => 'above', |
---|
1104 | ), |
---|
1105 | 'teaser' => |
---|
1106 | array ( |
---|
1107 | 'format' => 'default', |
---|
1108 | 'exclude' => 0, |
---|
1109 | ), |
---|
1110 | 'full' => |
---|
1111 | array ( |
---|
1112 | 'format' => 'plain', |
---|
1113 | 'exclude' => 0, |
---|
1114 | ), |
---|
1115 | 4 => |
---|
1116 | array ( |
---|
1117 | 'format' => 'default', |
---|
1118 | 'exclude' => 0, |
---|
1119 | ), |
---|
1120 | 'modal' => |
---|
1121 | array ( |
---|
1122 | 'format' => 'default', |
---|
1123 | 'exclude' => 0, |
---|
1124 | ), |
---|
1125 | 'inline' => |
---|
1126 | array ( |
---|
1127 | 'format' => 'default', |
---|
1128 | 'exclude' => 0, |
---|
1129 | ), |
---|
1130 | 'token' => |
---|
1131 | array ( |
---|
1132 | 'format' => 'default', |
---|
1133 | 'exclude' => 0, |
---|
1134 | ), |
---|
1135 | ), |
---|
1136 | ); |
---|
1137 | |
---|
1138 | $content['fields'][] = array ( |
---|
1139 | 'label' => 'EstrategÃas', |
---|
1140 | 'type_name' => 'politicas_direccionales', |
---|
1141 | 'field_name' => 'field_politicas_estrategias', |
---|
1142 | 'type' => 'nodereference', |
---|
1143 | 'widget_type' => 'nodereference_select', |
---|
1144 | 'change' => 'Cambiar información básica', |
---|
1145 | 'weight' => '47', |
---|
1146 | 'autocomplete_match' => 'contains', |
---|
1147 | 'size' => 60, |
---|
1148 | 'description' => '', |
---|
1149 | 'default_value' => |
---|
1150 | array ( |
---|
1151 | 0 => |
---|
1152 | array ( |
---|
1153 | 'nid' => '', |
---|
1154 | ), |
---|
1155 | ), |
---|
1156 | 'default_value_php' => '', |
---|
1157 | 'default_value_widget' => |
---|
1158 | array ( |
---|
1159 | 'field_politicas_estrategias' => |
---|
1160 | array ( |
---|
1161 | 0 => |
---|
1162 | array ( |
---|
1163 | 'nid' => '', |
---|
1164 | ), |
---|
1165 | 'nid' => |
---|
1166 | array ( |
---|
1167 | 'nid' => |
---|
1168 | array ( |
---|
1169 | 0 => '', |
---|
1170 | ), |
---|
1171 | ), |
---|
1172 | ), |
---|
1173 | ), |
---|
1174 | 'required' => 0, |
---|
1175 | 'multiple' => '1', |
---|
1176 | 'referenceable_types' => |
---|
1177 | array ( |
---|
1178 | 'estrategia' => 'estrategia', |
---|
1179 | 'causas' => 0, |
---|
1180 | 'situacion_ideal' => 0, |
---|
1181 | 'ente_planificador' => 0, |
---|
1182 | 'page' => 0, |
---|
1183 | 'politicas_direccionales' => 0, |
---|
1184 | 'direccionales' => 0, |
---|
1185 | 'descriptores' => 0, |
---|
1186 | 'story' => 0, |
---|
1187 | 'situacion_actual_preliminar' => 0, |
---|
1188 | 'webform' => 0, |
---|
1189 | ), |
---|
1190 | 'advanced_view' => '--', |
---|
1191 | 'advanced_view_args' => '', |
---|
1192 | 'op' => 'Guardar opciones de campo', |
---|
1193 | 'module' => 'nodereference', |
---|
1194 | 'widget_module' => 'nodereference', |
---|
1195 | 'columns' => |
---|
1196 | array ( |
---|
1197 | 'nid' => |
---|
1198 | array ( |
---|
1199 | 'type' => 'int', |
---|
1200 | 'unsigned' => true, |
---|
1201 | 'not null' => false, |
---|
1202 | 'index' => true, |
---|
1203 | ), |
---|
1204 | ), |
---|
1205 | 'display_settings' => |
---|
1206 | array ( |
---|
1207 | 'weight' => '47', |
---|
1208 | 'parent' => '', |
---|
1209 | 'label' => |
---|
1210 | array ( |
---|
1211 | 'format' => 'above', |
---|
1212 | ), |
---|
1213 | 'teaser' => |
---|
1214 | array ( |
---|
1215 | 'format' => 'default', |
---|
1216 | 'exclude' => 0, |
---|
1217 | ), |
---|
1218 | 'full' => |
---|
1219 | array ( |
---|
1220 | 'format' => 'plain', |
---|
1221 | 'exclude' => 0, |
---|
1222 | ), |
---|
1223 | 4 => |
---|
1224 | array ( |
---|
1225 | 'format' => 'default', |
---|
1226 | 'exclude' => 0, |
---|
1227 | ), |
---|
1228 | 'modal' => |
---|
1229 | array ( |
---|
1230 | 'format' => 'default', |
---|
1231 | 'exclude' => 0, |
---|
1232 | ), |
---|
1233 | 'inline' => |
---|
1234 | array ( |
---|
1235 | 'format' => 'default', |
---|
1236 | 'exclude' => 0, |
---|
1237 | ), |
---|
1238 | 'token' => |
---|
1239 | array ( |
---|
1240 | 'format' => 'default', |
---|
1241 | 'exclude' => 0, |
---|
1242 | ), |
---|
1243 | ), |
---|
1244 | ); |
---|
1245 | //SE AGREGAN LOS CAMPOS DE ESTRATEGIAS |
---|
1246 | |
---|
1247 | $content['fields'][] = array ( |
---|
1248 | 'label' => 'PolÃticas Direccionales', |
---|
1249 | 'type_name' => 'estrategia', |
---|
1250 | 'field_name' => 'field_estrategia_politicas_d', |
---|
1251 | 'type' => 'nodereference', |
---|
1252 | 'widget_type' => 'nodereference_select', |
---|
1253 | 'change' => 'Cambiar información básica', |
---|
1254 | 'weight' => '31', |
---|
1255 | 'autocomplete_match' => 'contains', |
---|
1256 | 'size' => 60, |
---|
1257 | 'description' => '', |
---|
1258 | 'default_value' => |
---|
1259 | array ( |
---|
1260 | 0 => |
---|
1261 | array ( |
---|
1262 | 'nid' => '', |
---|
1263 | ), |
---|
1264 | ), |
---|
1265 | 'default_value_php' => '', |
---|
1266 | 'default_value_widget' => NULL, |
---|
1267 | 'required' => 1, |
---|
1268 | 'multiple' => '1', |
---|
1269 | 'referenceable_types' => |
---|
1270 | array ( |
---|
1271 | 'politicas_direccionales' => 'politicas_direccionales', |
---|
1272 | 'causas' => 0, |
---|
1273 | 'situacion_ideal' => 0, |
---|
1274 | 'ente_planificador' => 0, |
---|
1275 | 'estrategia' => 0, |
---|
1276 | 'page' => 0, |
---|
1277 | 'direccionales' => 0, |
---|
1278 | 'descriptores' => 0, |
---|
1279 | 'story' => 0, |
---|
1280 | 'situacion_actual_preliminar' => 0, |
---|
1281 | 'webform' => 0, |
---|
1282 | ), |
---|
1283 | 'advanced_view' => '--', |
---|
1284 | 'advanced_view_args' => '', |
---|
1285 | 'op' => 'Guardar opciones de campo', |
---|
1286 | 'module' => 'nodereference', |
---|
1287 | 'widget_module' => 'nodereference', |
---|
1288 | 'columns' => |
---|
1289 | array ( |
---|
1290 | 'nid' => |
---|
1291 | array ( |
---|
1292 | 'type' => 'int', |
---|
1293 | 'unsigned' => true, |
---|
1294 | 'not null' => false, |
---|
1295 | 'index' => true, |
---|
1296 | ), |
---|
1297 | ), |
---|
1298 | 'display_settings' => |
---|
1299 | array ( |
---|
1300 | 'weight' => '31', |
---|
1301 | 'parent' => '', |
---|
1302 | 'label' => |
---|
1303 | array ( |
---|
1304 | 'format' => 'above', |
---|
1305 | ), |
---|
1306 | 'teaser' => |
---|
1307 | array ( |
---|
1308 | 'format' => 'default', |
---|
1309 | 'exclude' => 0, |
---|
1310 | ), |
---|
1311 | 'full' => |
---|
1312 | array ( |
---|
1313 | 'format' => 'plain', |
---|
1314 | 'exclude' => 0, |
---|
1315 | ), |
---|
1316 | 4 => |
---|
1317 | array ( |
---|
1318 | 'format' => 'default', |
---|
1319 | 'exclude' => 0, |
---|
1320 | ), |
---|
1321 | 'modal' => |
---|
1322 | array ( |
---|
1323 | 'format' => 'default', |
---|
1324 | 'exclude' => 0, |
---|
1325 | ), |
---|
1326 | 'inline' => |
---|
1327 | array ( |
---|
1328 | 'format' => 'default', |
---|
1329 | 'exclude' => 0, |
---|
1330 | ), |
---|
1331 | 'token' => |
---|
1332 | array ( |
---|
1333 | 'format' => 'default', |
---|
1334 | 'exclude' => 0, |
---|
1335 | ), |
---|
1336 | ), |
---|
1337 | ); |
---|
1338 | |
---|
1339 | $content['fields'][] = array ( |
---|
1340 | 'label' => 'Ãreas de Impacto', |
---|
1341 | 'type_name' => 'estrategia', |
---|
1342 | 'field_name' => 'field_estrategia_area', |
---|
1343 | 'type' => 'text', |
---|
1344 | 'widget_type' => 'text_textarea', |
---|
1345 | 'change' => 'Cambiar información básica', |
---|
1346 | 'weight' => '32', |
---|
1347 | 'rows' => '5', |
---|
1348 | 'size' => 60, |
---|
1349 | 'description' => '', |
---|
1350 | 'default_value' => |
---|
1351 | array ( |
---|
1352 | 0 => |
---|
1353 | array ( |
---|
1354 | 'value' => '', |
---|
1355 | '_error_element' => 'default_value_widget][field_estrategia_area][0][value', |
---|
1356 | ), |
---|
1357 | ), |
---|
1358 | 'default_value_php' => '', |
---|
1359 | 'default_value_widget' => |
---|
1360 | array ( |
---|
1361 | 'field_estrategia_area' => |
---|
1362 | array ( |
---|
1363 | 0 => |
---|
1364 | array ( |
---|
1365 | 'value' => '', |
---|
1366 | '_error_element' => 'default_value_widget][field_estrategia_area][0][value', |
---|
1367 | ), |
---|
1368 | ), |
---|
1369 | ), |
---|
1370 | 'required' => 1, |
---|
1371 | 'multiple' => '1', |
---|
1372 | 'text_processing' => '0', |
---|
1373 | 'max_length' => '', |
---|
1374 | 'allowed_values' => '', |
---|
1375 | 'allowed_values_php' => '', |
---|
1376 | 'op' => 'Guardar opciones de campo', |
---|
1377 | 'module' => 'text', |
---|
1378 | 'widget_module' => 'text', |
---|
1379 | 'columns' => |
---|
1380 | array ( |
---|
1381 | 'value' => |
---|
1382 | array ( |
---|
1383 | 'type' => 'text', |
---|
1384 | 'size' => 'big', |
---|
1385 | 'not null' => false, |
---|
1386 | 'sortable' => true, |
---|
1387 | 'views' => true, |
---|
1388 | ), |
---|
1389 | ), |
---|
1390 | 'display_settings' => |
---|
1391 | array ( |
---|
1392 | 'weight' => '32', |
---|
1393 | 'parent' => '', |
---|
1394 | 'label' => |
---|
1395 | array ( |
---|
1396 | 'format' => 'above', |
---|
1397 | ), |
---|
1398 | 'teaser' => |
---|
1399 | array ( |
---|
1400 | 'format' => 'default', |
---|
1401 | 'exclude' => 0, |
---|
1402 | ), |
---|
1403 | 'full' => |
---|
1404 | array ( |
---|
1405 | 'format' => 'plain', |
---|
1406 | 'exclude' => 0, |
---|
1407 | ), |
---|
1408 | 4 => |
---|
1409 | array ( |
---|
1410 | 'format' => 'default', |
---|
1411 | 'exclude' => 0, |
---|
1412 | ), |
---|
1413 | 'modal' => |
---|
1414 | array ( |
---|
1415 | 'format' => 'default', |
---|
1416 | 'exclude' => 0, |
---|
1417 | ), |
---|
1418 | 'inline' => |
---|
1419 | array ( |
---|
1420 | 'format' => 'default', |
---|
1421 | 'exclude' => 0, |
---|
1422 | ), |
---|
1423 | 'token' => |
---|
1424 | array ( |
---|
1425 | 'format' => 'default', |
---|
1426 | 'exclude' => 0, |
---|
1427 | ), |
---|
1428 | ), |
---|
1429 | ); |
---|
1430 | |
---|
1431 | $content['fields'][] = array ( |
---|
1432 | 'label' => 'Ente Planificador', |
---|
1433 | 'type_name' => 'estrategia', |
---|
1434 | 'field_name' => 'field_estrategia_ente', |
---|
1435 | 'type' => 'nodereference', |
---|
1436 | 'widget_type' => 'nodereference_select', |
---|
1437 | 'change' => 'Cambiar información básica', |
---|
1438 | 'weight' => '33', |
---|
1439 | 'autocomplete_match' => 'contains', |
---|
1440 | 'size' => 60, |
---|
1441 | 'description' => '', |
---|
1442 | 'default_value' => |
---|
1443 | array ( |
---|
1444 | 0 => |
---|
1445 | array ( |
---|
1446 | 'nid' => '', |
---|
1447 | ), |
---|
1448 | ), |
---|
1449 | 'default_value_php' => '', |
---|
1450 | 'default_value_widget' => |
---|
1451 | array ( |
---|
1452 | 'field_estrategia_ente' => |
---|
1453 | array ( |
---|
1454 | 0 => |
---|
1455 | array ( |
---|
1456 | 'nid' => '', |
---|
1457 | ), |
---|
1458 | 'nid' => |
---|
1459 | array ( |
---|
1460 | 'nid' => '', |
---|
1461 | ), |
---|
1462 | ), |
---|
1463 | ), |
---|
1464 | 'required' => 0, |
---|
1465 | 'multiple' => '0', |
---|
1466 | 'referenceable_types' => |
---|
1467 | array ( |
---|
1468 | 'ente_planificador' => 'ente_planificador', |
---|
1469 | 'causas' => 0, |
---|
1470 | 'situacion_ideal' => 0, |
---|
1471 | 'estrategia' => 0, |
---|
1472 | 'page' => 0, |
---|
1473 | 'politicas_direccionales' => 0, |
---|
1474 | 'direccionales' => 0, |
---|
1475 | 'descriptores' => 0, |
---|
1476 | 'story' => 0, |
---|
1477 | 'situacion_actual_preliminar' => 0, |
---|
1478 | 'webform' => 0, |
---|
1479 | ), |
---|
1480 | 'advanced_view' => '--', |
---|
1481 | 'advanced_view_args' => '', |
---|
1482 | 'op' => 'Guardar opciones de campo', |
---|
1483 | 'module' => 'nodereference', |
---|
1484 | 'widget_module' => 'nodereference', |
---|
1485 | 'columns' => |
---|
1486 | array ( |
---|
1487 | 'nid' => |
---|
1488 | array ( |
---|
1489 | 'type' => 'int', |
---|
1490 | 'unsigned' => true, |
---|
1491 | 'not null' => false, |
---|
1492 | 'index' => true, |
---|
1493 | ), |
---|
1494 | ), |
---|
1495 | 'display_settings' => |
---|
1496 | array ( |
---|
1497 | 'weight' => '33', |
---|
1498 | 'parent' => '', |
---|
1499 | 'label' => |
---|
1500 | array ( |
---|
1501 | 'format' => 'above', |
---|
1502 | ), |
---|
1503 | 'teaser' => |
---|
1504 | array ( |
---|
1505 | 'format' => 'default', |
---|
1506 | 'exclude' => 0, |
---|
1507 | ), |
---|
1508 | 'full' => |
---|
1509 | array ( |
---|
1510 | 'format' => 'plain', |
---|
1511 | 'exclude' => 0, |
---|
1512 | ), |
---|
1513 | 4 => |
---|
1514 | array ( |
---|
1515 | 'format' => 'default', |
---|
1516 | 'exclude' => 0, |
---|
1517 | ), |
---|
1518 | 'modal' => |
---|
1519 | array ( |
---|
1520 | 'format' => 'default', |
---|
1521 | 'exclude' => 0, |
---|
1522 | ), |
---|
1523 | 'inline' => |
---|
1524 | array ( |
---|
1525 | 'format' => 'default', |
---|
1526 | 'exclude' => 0, |
---|
1527 | ), |
---|
1528 | 'token' => |
---|
1529 | array ( |
---|
1530 | 'format' => 'default', |
---|
1531 | 'exclude' => 0, |
---|
1532 | ), |
---|
1533 | ), |
---|
1534 | ); |
---|
1535 | |
---|
1536 | $content['fields'][] = array ( |
---|
1537 | 'label' => 'Actores Involucrados', |
---|
1538 | 'type_name' => 'estrategia', |
---|
1539 | 'field_name' => 'field_estrategia_actores', |
---|
1540 | 'type' => 'nodereference', |
---|
1541 | 'widget_type' => 'nodereference_select', |
---|
1542 | 'change' => 'Cambiar información básica', |
---|
1543 | 'weight' => '34', |
---|
1544 | 'autocomplete_match' => 'contains', |
---|
1545 | 'size' => 60, |
---|
1546 | 'description' => '', |
---|
1547 | 'default_value' => |
---|
1548 | array ( |
---|
1549 | 0 => |
---|
1550 | array ( |
---|
1551 | 'nid' => '', |
---|
1552 | ), |
---|
1553 | ), |
---|
1554 | 'default_value_php' => '', |
---|
1555 | 'default_value_widget' => |
---|
1556 | array ( |
---|
1557 | 'field_estrategia_actores' => |
---|
1558 | array ( |
---|
1559 | 0 => |
---|
1560 | array ( |
---|
1561 | 'nid' => '', |
---|
1562 | ), |
---|
1563 | 'nid' => |
---|
1564 | array ( |
---|
1565 | 'nid' => |
---|
1566 | array ( |
---|
1567 | 0 => '', |
---|
1568 | ), |
---|
1569 | ), |
---|
1570 | ), |
---|
1571 | ), |
---|
1572 | 'required' => 1, |
---|
1573 | 'multiple' => '1', |
---|
1574 | 'referenceable_types' => |
---|
1575 | array ( |
---|
1576 | 'ente_planificador' => 'ente_planificador', |
---|
1577 | 'causas' => 0, |
---|
1578 | 'situacion_ideal' => 0, |
---|
1579 | 'estrategia' => 0, |
---|
1580 | 'page' => 0, |
---|
1581 | 'politicas_direccionales' => 0, |
---|
1582 | 'direccionales' => 0, |
---|
1583 | 'descriptores' => 0, |
---|
1584 | 'story' => 0, |
---|
1585 | 'situacion_actual_preliminar' => 0, |
---|
1586 | 'webform' => 0, |
---|
1587 | ), |
---|
1588 | 'advanced_view' => '--', |
---|
1589 | 'advanced_view_args' => '', |
---|
1590 | 'op' => 'Guardar opciones de campo', |
---|
1591 | 'module' => 'nodereference', |
---|
1592 | 'widget_module' => 'nodereference', |
---|
1593 | 'columns' => |
---|
1594 | array ( |
---|
1595 | 'nid' => |
---|
1596 | array ( |
---|
1597 | 'type' => 'int', |
---|
1598 | 'unsigned' => true, |
---|
1599 | 'not null' => false, |
---|
1600 | 'index' => true, |
---|
1601 | ), |
---|
1602 | ), |
---|
1603 | 'display_settings' => |
---|
1604 | array ( |
---|
1605 | 'weight' => '34', |
---|
1606 | 'parent' => '', |
---|
1607 | 'label' => |
---|
1608 | array ( |
---|
1609 | 'format' => 'above', |
---|
1610 | ), |
---|
1611 | 'teaser' => |
---|
1612 | array ( |
---|
1613 | 'format' => 'default', |
---|
1614 | 'exclude' => 0, |
---|
1615 | ), |
---|
1616 | 'full' => |
---|
1617 | array ( |
---|
1618 | 'format' => 'plain', |
---|
1619 | 'exclude' => 0, |
---|
1620 | ), |
---|
1621 | 4 => |
---|
1622 | array ( |
---|
1623 | 'format' => 'default', |
---|
1624 | 'exclude' => 0, |
---|
1625 | ), |
---|
1626 | 'modal' => |
---|
1627 | array ( |
---|
1628 | 'format' => 'default', |
---|
1629 | 'exclude' => 0, |
---|
1630 | ), |
---|
1631 | 'inline' => |
---|
1632 | array ( |
---|
1633 | 'format' => 'default', |
---|
1634 | 'exclude' => 0, |
---|
1635 | ), |
---|
1636 | 'token' => |
---|
1637 | array ( |
---|
1638 | 'format' => 'default', |
---|
1639 | 'exclude' => 0, |
---|
1640 | ), |
---|
1641 | ), |
---|
1642 | ); |
---|
1643 | return $content; |
---|
1644 | } |
---|