1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana |
---|
5 | * @file situacion_actual_preliminar.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 - Phd. Juan Vizcarrondo |
---|
24 | * @date 2017-06-21 // (año-mes-dia) |
---|
25 | * @version 0.3 // (0.3) |
---|
26 | * |
---|
27 | */ |
---|
28 | |
---|
29 | /* |
---|
30 | * Implementation of hook_install() |
---|
31 | */ |
---|
32 | function situacion_actual_preliminar_install() { |
---|
33 | |
---|
34 | variable_set('ente_planificador_fechas_situacion_actual_preliminar', 1); |
---|
35 | variable_set('ente_planificador_fechas_causas', 1); |
---|
36 | // Notify content module when this module is uninstalled. |
---|
37 | drupal_load('module', 'content'); |
---|
38 | content_notify('install', 'situacion_actual_preliminar'); |
---|
39 | } |
---|
40 | |
---|
41 | /* |
---|
42 | * Implementation of hook_uninstall() |
---|
43 | */ |
---|
44 | function situacion_actual_preliminar_uninstall() { |
---|
45 | variable_del('ente_planificador_fechas_situacion_actual_preliminar'); |
---|
46 | variable_del('ente_planificador_fechas_causas'); |
---|
47 | // Notify content module when this module is uninstalled. |
---|
48 | include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc'); |
---|
49 | _situacion_actual_preliminar_install_type_remove_field(); |
---|
50 | content_notify('uninstall', 'situacion_actual_preliminar'); |
---|
51 | } |
---|
52 | |
---|
53 | /* |
---|
54 | * Implementation of hook_enable() |
---|
55 | */ |
---|
56 | function situacion_actual_preliminar_enable() { |
---|
57 | // Notify content module when this module is uninstalled. |
---|
58 | drupal_load('module', 'content'); |
---|
59 | content_notify('enable', 'situacion_actual_preliminar'); |
---|
60 | include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc'); |
---|
61 | //SE AGREGA LA UNIDAD DE MEDIDA |
---|
62 | $vocabulary = taxonomy_vocabulary_load(variable_get('situacion_actual_preliminar_categoria', 0)); |
---|
63 | if (!$vocabulary) { |
---|
64 | $vocabulary = array( |
---|
65 | 'name' => t('Categorización de Problemas'), |
---|
66 | 'multiple' => 0, |
---|
67 | 'required' => 0, |
---|
68 | 'hierarchy' => 1, |
---|
69 | 'relations' => 0, |
---|
70 | 'module' => 'situacion_actual_preliminar', |
---|
71 | 'weight' => -10, |
---|
72 | ); |
---|
73 | taxonomy_save_vocabulary($vocabulary); |
---|
74 | variable_set('situacion_actual_preliminar_categoria', $vocabulary['vid']); |
---|
75 | _situacion_actual_preliminar_clasificacion_install_fields($vocabulary['vid']); |
---|
76 | } |
---|
77 | $vocabulary = taxonomy_vocabulary_load(variable_get('situacion_actual_preliminar_plan_carab', 0)); |
---|
78 | if (!$vocabulary) { |
---|
79 | $vocabulary = array( |
---|
80 | 'name' => t('Metas del Plan Carabobo'), |
---|
81 | 'multiple' => 0, |
---|
82 | 'required' => 0, |
---|
83 | 'hierarchy' => 1, |
---|
84 | 'relations' => 0, |
---|
85 | 'module' => 'situacion_actual_preliminar', |
---|
86 | 'weight' => -10, |
---|
87 | ); |
---|
88 | taxonomy_save_vocabulary($vocabulary); |
---|
89 | variable_set('situacion_actual_preliminar_plan_carab', $vocabulary['vid']); |
---|
90 | } |
---|
91 | _situacion_actual_preliminar_install_type_create_field(); |
---|
92 | _situacion_actual_preliminar_taxonomy_install_fields(); |
---|
93 | } |
---|
94 | |
---|
95 | /* |
---|
96 | * Implementation of _situacion_actual_preliminar_clasificacion_install_fields() |
---|
97 | * Agrega terminos a la taxonomia categorizacion |
---|
98 | */ |
---|
99 | function _situacion_actual_preliminar_clasificacion_install_fields($vid = 0) { |
---|
100 | $clasificacion = array(); |
---|
101 | $clasificacion[] = t("Agricultura"); |
---|
102 | $clasificacion[] = t("Agroindustria"); |
---|
103 | $clasificacion[] = t("Agua potable"); |
---|
104 | $clasificacion[] = t("Aguas servidas"); |
---|
105 | $clasificacion[] = t("Alimentación"); |
---|
106 | $clasificacion[] = t("Articulación institucional"); |
---|
107 | $clasificacion[] = t("Ausencia de seguimiento"); |
---|
108 | $clasificacion[] = t("Ausencia de estadÃsticas y datos"); |
---|
109 | $clasificacion[] = t("Ciencia"); |
---|
110 | $clasificacion[] = t("Comercio"); |
---|
111 | $clasificacion[] = t("Comuna"); |
---|
112 | $clasificacion[] = t("Comunicación"); |
---|
113 | $clasificacion[] = t("Consejo Comunal"); |
---|
114 | $clasificacion[] = t("Conservación ambiental"); |
---|
115 | $clasificacion[] = t("Crisis de valores"); |
---|
116 | $clasificacion[] = t("Cultura"); |
---|
117 | $clasificacion[] = t("Defensa nacional"); |
---|
118 | $clasificacion[] = t("Deporte"); |
---|
119 | $clasificacion[] = t("Derechos humanos"); |
---|
120 | $clasificacion[] = t("Desechos sólidos"); |
---|
121 | $clasificacion[] = t("Desempleo"); |
---|
122 | $clasificacion[] = t("Desnutrición"); |
---|
123 | $clasificacion[] = t("Económico"); |
---|
124 | $clasificacion[] = t("Educación básica"); |
---|
125 | $clasificacion[] = t("Educación media"); |
---|
126 | $clasificacion[] = t("Educación universitaria"); |
---|
127 | $clasificacion[] = t("Equipamiento urbano"); |
---|
128 | $clasificacion[] = t("Escasez o insuficiencia de personal calificado"); |
---|
129 | $clasificacion[] = t("Esparcimiento"); |
---|
130 | $clasificacion[] = t("Exportaciones"); |
---|
131 | $clasificacion[] = t("Forestal"); |
---|
132 | $clasificacion[] = t("Gestión "); |
---|
133 | $clasificacion[] = t("Hidrocarburos"); |
---|
134 | $clasificacion[] = t("Igualdad de género"); |
---|
135 | $clasificacion[] = t("Industria básica"); |
---|
136 | $clasificacion[] = t("Industria farmacéutica"); |
---|
137 | $clasificacion[] = t("Industria intermedia"); |
---|
138 | $clasificacion[] = t("Industria militar"); |
---|
139 | $clasificacion[] = t("Industria minera"); |
---|
140 | $clasificacion[] = t("Industria petrolera"); |
---|
141 | $clasificacion[] = t("Infraestructuras"); |
---|
142 | $clasificacion[] = t("Inversión"); |
---|
143 | $clasificacion[] = t("JurÃdico"); |
---|
144 | $clasificacion[] = t("LogÃstica de distribución"); |
---|
145 | $clasificacion[] = t("Lucha contra la corrupción"); |
---|
146 | $clasificacion[] = t("MinerÃa"); |
---|
147 | $clasificacion[] = t("Movilidad"); |
---|
148 | $clasificacion[] = t("Obras públicas"); |
---|
149 | $clasificacion[] = t("Participación comunitaria y/o ciudadana"); |
---|
150 | $clasificacion[] = t("Pecuario"); |
---|
151 | $clasificacion[] = t("Pesca y acuicultura"); |
---|
152 | $clasificacion[] = t("PetroquÃmica"); |
---|
153 | $clasificacion[] = t("Planificación"); |
---|
154 | $clasificacion[] = t("Pobreza"); |
---|
155 | $clasificacion[] = t("Pueblos indÃgenas"); |
---|
156 | $clasificacion[] = t("Racismo"); |
---|
157 | $clasificacion[] = t("Salud"); |
---|
158 | $clasificacion[] = t("Seguridad ciudadana"); |
---|
159 | $clasificacion[] = t("Sistema o Servicio eléctrico"); |
---|
160 | $clasificacion[] = t("Simplificación de trámites"); |
---|
161 | $clasificacion[] = t("Sistema eléctrico"); |
---|
162 | $clasificacion[] = t("Sustitución de importaciones"); |
---|
163 | $clasificacion[] = t("TecnologÃa e innovación"); |
---|
164 | $clasificacion[] = t("Telecomunicaciones"); |
---|
165 | $clasificacion[] = t("Tráfico de drogas"); |
---|
166 | $clasificacion[] = t("Transporte"); |
---|
167 | $clasificacion[] = t("Turismo"); |
---|
168 | $clasificacion[] = t("Uso ilÃcito de drogas"); |
---|
169 | $clasificacion[] = t("Vialidad"); |
---|
170 | $clasificacion[] = t("Violencia de género"); |
---|
171 | $clasificacion[] = t("Violencia doméstica"); |
---|
172 | $clasificacion[] = t("Vivienda"); |
---|
173 | if ($vid && count($clasificacion)) { |
---|
174 | foreach ($clasificacion as $nombre) { |
---|
175 | $term = array( |
---|
176 | 'vid' => $vid, // Voacabulary ID |
---|
177 | 'name' => $nombre, // Term Name |
---|
178 | ); |
---|
179 | taxonomy_save_term($term); |
---|
180 | } |
---|
181 | } |
---|
182 | } |
---|
183 | |
---|
184 | /* |
---|
185 | * Implementation of _situacion_actual_preliminar_clasificacion_install_fields() |
---|
186 | * Agrega campos al pdlp |
---|
187 | */ |
---|
188 | function _situacion_actual_preliminar_taxonomy_install_fields() { |
---|
189 | //Se crean los campos en la taxonomia del pdlp |
---|
190 | $arreglo = array( |
---|
191 | 'plan_carabobo_frente_batalla' => t('Frente de Batalla'), |
---|
192 | 'plan_carabobo_linea_estrategica' => t('Linea Estrategica de Acción 2017-2018'), |
---|
193 | 'plan_carabobo_meta' => t('Plan Carabobo Meta 2017-2018'), |
---|
194 | 'plan_carabobo_relations' => t('Relations field taxonomy'), |
---|
195 | ); |
---|
196 | foreach($arreglo as $id => $texto) { |
---|
197 | //create field |
---|
198 | $pdlp = variable_get('proyectos_operativos_pdlp', 0) ? variable_get('proyectos_operativos_pdlp', 0) : 11; |
---|
199 | $field_new = array( |
---|
200 | 'fid' => $id, |
---|
201 | 'title' => $texto, |
---|
202 | 'description' => '', |
---|
203 | 'required' => 0, |
---|
204 | 'weight' => 0, |
---|
205 | 'type' => ($id == 'plan_carabobo_relations') ? 'numeric' : 'text', |
---|
206 | 'options' => array( |
---|
207 | 'default' => array( |
---|
208 | 'value' => '', |
---|
209 | ), |
---|
210 | 'max_length' => '', |
---|
211 | 'size' => '', |
---|
212 | ), |
---|
213 | 'widget' => 'textfield', |
---|
214 | 'vid' => $pdlp, |
---|
215 | ); |
---|
216 | $field = (object) $field_new; |
---|
217 | $field->options = array(); |
---|
218 | $field->module = 'situacion_actual_preliminar'; |
---|
219 | if ($field_info = term_fields_get_fields_info($field->type)) { |
---|
220 | $field->module = $field_info['module']; |
---|
221 | } |
---|
222 | else { |
---|
223 | drupal_set_message(t('An error occured while saving the new field %title (%field). If such error persists, please contact a site administrator.', array('%title' => $field->title, '%field' => $field->fid)), 'error'); |
---|
224 | return; |
---|
225 | } |
---|
226 | // Flag the fiels as instantiated. |
---|
227 | if (empty($field->instantiated)) { |
---|
228 | $field->instantiated = 1; |
---|
229 | } |
---|
230 | drupal_write_record('term_fields', $field); |
---|
231 | drupal_write_record('term_fields', $field, array('fid')); |
---|
232 | drupal_write_record('term_fields_instance', $field, array('fid', 'vid')); |
---|
233 | // Get the new columns if any. |
---|
234 | $columns = module_invoke($field->module, 'term_fields_api', 'storage', $field); |
---|
235 | //add new field in table |
---|
236 | if (!db_column_exists('term_fields_term', $field->fid)) { |
---|
237 | $name = $id . '_value'; |
---|
238 | foreach ($columns as $column) { |
---|
239 | db_add_field($ret, 'term_fields_term', $name, $column); |
---|
240 | } |
---|
241 | } |
---|
242 | } |
---|
243 | } |
---|
244 | |
---|
245 | /* |
---|
246 | * Implementation of hook_disable() |
---|
247 | */ |
---|
248 | function situacion_actual_preliminar_disable() { |
---|
249 | drupal_load('module', 'content'); |
---|
250 | content_notify('disable', 'situacion_actual_preliminar'); |
---|
251 | } |
---|
252 | |
---|
253 | /* |
---|
254 | * _situacion_actual_preliminar_install_type_create_field |
---|
255 | * Crear los tipos de contenidos necesarios para el funcionamiento del modulo |
---|
256 | */ |
---|
257 | function _situacion_actual_preliminar_install_type_remove_field() { |
---|
258 | // Load fields. |
---|
259 | $situacion_actual_preliminar_fields = _situacion_actual_preliminar_load_fields(); |
---|
260 | foreach ($situacion_actual_preliminar_fields['fields'] as $situacion_actual_preliminar_inserts) { |
---|
261 | $instances = content_field_instance_read(array( |
---|
262 | 'field_name' => $situacion_actual_preliminar_inserts['field_name'], |
---|
263 | 'type_name' => $situacion_actual_preliminar_inserts['type_name'] |
---|
264 | )); |
---|
265 | if (count($instances)) { |
---|
266 | // Only add the field if it doesn't exist. Don't overwrite any changes. |
---|
267 | content_field_instance_delete($situacion_actual_preliminar_inserts['field_name'], $situacion_actual_preliminar_inserts['type_name']); |
---|
268 | drupal_set_message( |
---|
269 | t("Removed field %typefield in content type %typecontent", |
---|
270 | array( |
---|
271 | '%typefield' => $situacion_actual_preliminar_inserts['label'], |
---|
272 | '%typecontent' => $situacion_actual_preliminar_inserts['type_name'] |
---|
273 | ) |
---|
274 | )); |
---|
275 | } |
---|
276 | } |
---|
277 | } |
---|
278 | |
---|
279 | |
---|
280 | /* |
---|
281 | * _situacion_actual_preliminar_install_type_create_field |
---|
282 | * Crear los tipos de contenidos necesarios para el funcionamiento del modulo |
---|
283 | */ |
---|
284 | function _situacion_actual_preliminar_install_type_create_field() { |
---|
285 | // Load fields. |
---|
286 | $situacion_actual_preliminar_fields = _situacion_actual_preliminar_load_fields(); |
---|
287 | foreach ($situacion_actual_preliminar_fields['fields'] as $situacion_actual_preliminar_inserts) { |
---|
288 | $instances = content_field_instance_read(array( |
---|
289 | 'field_name' => $situacion_actual_preliminar_inserts['field_name'], |
---|
290 | 'type_name' => $situacion_actual_preliminar_inserts['type_name'] |
---|
291 | )); |
---|
292 | if (count($instances) < 1) { |
---|
293 | // Only add the field if it doesn't exist. Don't overwrite any changes. |
---|
294 | content_field_instance_create($situacion_actual_preliminar_inserts); |
---|
295 | drupal_set_message( |
---|
296 | t("Saved field %typefield in content type %typecontent", |
---|
297 | array( |
---|
298 | '%typefield' => $situacion_actual_preliminar_inserts['label'], |
---|
299 | '%typecontent' => $situacion_actual_preliminar_inserts['type_name'] |
---|
300 | ) |
---|
301 | )); |
---|
302 | } |
---|
303 | } |
---|
304 | } |
---|
305 | |
---|
306 | /* |
---|
307 | * _situacion_actual_preliminar_load_fields |
---|
308 | * Fields definitions |
---|
309 | */ |
---|
310 | function _situacion_actual_preliminar_load_fields() { |
---|
311 | //Descriptor |
---|
312 | //enlace ente planificador |
---|
313 | $content['fields'][] = array ( |
---|
314 | 'label' => 'Ente planificador', |
---|
315 | 'type_name' => 'descriptores', |
---|
316 | 'field_name' => 'field_descriptores_planificador', |
---|
317 | 'type' => 'nodereference', |
---|
318 | 'widget_type' => 'nodereference_select', |
---|
319 | 'change' => 'Change basic information', |
---|
320 | 'weight' => '31', |
---|
321 | 'autocomplete_match' => 'contains', |
---|
322 | 'size' => 60, |
---|
323 | 'description' => '', |
---|
324 | 'default_value' => |
---|
325 | array ( |
---|
326 | 0 => |
---|
327 | array ( |
---|
328 | 'nid' => '', |
---|
329 | ), |
---|
330 | ), |
---|
331 | 'default_value_php' => '', |
---|
332 | 'default_value_widget' => NULL, |
---|
333 | 'required' => 1, |
---|
334 | 'multiple' => '0', |
---|
335 | 'referenceable_types' => |
---|
336 | array ( |
---|
337 | 'descriptores' => 0, |
---|
338 | 'causas' => 0, |
---|
339 | 'ente_planificador' => 'ente_planificador', |
---|
340 | 'page' => 0, |
---|
341 | 'situacion_actual' => 0, |
---|
342 | 'story' => 0, |
---|
343 | 'situacion_actual_preliminar' => 0, |
---|
344 | ), |
---|
345 | 'advanced_view' => '--', |
---|
346 | 'advanced_view_args' => '', |
---|
347 | 'op' => 'Guardar configuraciones del 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 | 'label' => |
---|
363 | array ( |
---|
364 | 'format' => 'above', |
---|
365 | 'exclude' => 0, |
---|
366 | ), |
---|
367 | 'teaser' => |
---|
368 | array ( |
---|
369 | 'format' => 'default', |
---|
370 | 'exclude' => 0, |
---|
371 | ), |
---|
372 | 'full' => |
---|
373 | array ( |
---|
374 | 'format' => 'default', |
---|
375 | 'exclude' => 0, |
---|
376 | ), |
---|
377 | 4 => |
---|
378 | array ( |
---|
379 | 'format' => 'default', |
---|
380 | 'exclude' => 0, |
---|
381 | ), |
---|
382 | 'modal' => |
---|
383 | array ( |
---|
384 | 'format' => 'default', |
---|
385 | 'exclude' => 0, |
---|
386 | ), |
---|
387 | 'inline' => |
---|
388 | array ( |
---|
389 | 'format' => 'default', |
---|
390 | 'exclude' => 0, |
---|
391 | ), |
---|
392 | 'token' => |
---|
393 | array ( |
---|
394 | 'format' => 'default', |
---|
395 | 'exclude' => 0, |
---|
396 | ), |
---|
397 | ), |
---|
398 | ); |
---|
399 | //enlace a causas |
---|
400 | $content['fields'][] = array ( |
---|
401 | 'label' => 'Causa', |
---|
402 | 'type_name' => 'descriptores', |
---|
403 | 'field_name' => 'field_descriptores_causa', |
---|
404 | 'type' => 'nodereference', |
---|
405 | 'widget_type' => 'nodereference_select', |
---|
406 | 'change' => 'Change basic information', |
---|
407 | 'weight' => '32', |
---|
408 | 'autocomplete_match' => 'contains', |
---|
409 | 'size' => 60, |
---|
410 | 'description' => '', |
---|
411 | 'default_value' => |
---|
412 | array ( |
---|
413 | 0 => |
---|
414 | array ( |
---|
415 | 'nid' => '', |
---|
416 | ), |
---|
417 | ), |
---|
418 | 'default_value_php' => '', |
---|
419 | 'default_value_widget' => |
---|
420 | array ( |
---|
421 | 'field_descriptores_causa' => |
---|
422 | array ( |
---|
423 | 0 => |
---|
424 | array ( |
---|
425 | 'nid' => '', |
---|
426 | ), |
---|
427 | 'nid' => |
---|
428 | array ( |
---|
429 | 'nid' => |
---|
430 | array ( |
---|
431 | 0 => '', |
---|
432 | ), |
---|
433 | ), |
---|
434 | ), |
---|
435 | ), |
---|
436 | 'required' => 0, |
---|
437 | 'multiple' => '1', |
---|
438 | 'referenceable_types' => |
---|
439 | array ( |
---|
440 | 'causas' => 'causas', |
---|
441 | 'descriptores' => 0, |
---|
442 | 'ente_planificador' => 0, |
---|
443 | 'page' => 0, |
---|
444 | 'situacion_actual' => 0, |
---|
445 | 'story' => 0, |
---|
446 | 'situacion_actual_preliminar' => 0, |
---|
447 | ), |
---|
448 | 'advanced_view' => '--', |
---|
449 | 'advanced_view_args' => '', |
---|
450 | 'op' => 'Guardar configuraciones del campo', |
---|
451 | 'module' => 'nodereference', |
---|
452 | 'widget_module' => 'nodereference', |
---|
453 | 'columns' => |
---|
454 | array ( |
---|
455 | 'nid' => |
---|
456 | array ( |
---|
457 | 'type' => 'int', |
---|
458 | 'unsigned' => true, |
---|
459 | 'not null' => false, |
---|
460 | 'index' => true, |
---|
461 | ), |
---|
462 | ), |
---|
463 | 'display_settings' => |
---|
464 | array ( |
---|
465 | 'label' => |
---|
466 | array ( |
---|
467 | 'format' => 'above', |
---|
468 | 'exclude' => 0, |
---|
469 | ), |
---|
470 | 'teaser' => |
---|
471 | array ( |
---|
472 | 'format' => 'default', |
---|
473 | 'exclude' => 0, |
---|
474 | ), |
---|
475 | 'full' => |
---|
476 | array ( |
---|
477 | 'format' => 'default', |
---|
478 | 'exclude' => 0, |
---|
479 | ), |
---|
480 | 4 => |
---|
481 | array ( |
---|
482 | 'format' => 'default', |
---|
483 | 'exclude' => 0, |
---|
484 | ), |
---|
485 | 'modal' => |
---|
486 | array ( |
---|
487 | 'format' => 'default', |
---|
488 | 'exclude' => 0, |
---|
489 | ), |
---|
490 | 'inline' => |
---|
491 | array ( |
---|
492 | 'format' => 'default', |
---|
493 | 'exclude' => 0, |
---|
494 | ), |
---|
495 | 'token' => |
---|
496 | array ( |
---|
497 | 'format' => 'default', |
---|
498 | 'exclude' => 0, |
---|
499 | ), |
---|
500 | ), |
---|
501 | ); |
---|
502 | |
---|
503 | //enlace a cambios |
---|
504 | $content['fields'][] = array ( |
---|
505 | 'label' => 'Cambios en la Situación Actual', |
---|
506 | 'type_name' => 'descriptores', |
---|
507 | 'field_name' => 'field_descriptor_cambio', |
---|
508 | 'type' => 'nodereference', |
---|
509 | 'widget_type' => 'nodereference_select', |
---|
510 | 'change' => 'Change basic information', |
---|
511 | 'weight' => '32', |
---|
512 | 'autocomplete_match' => 'contains', |
---|
513 | 'size' => 60, |
---|
514 | 'description' => '', |
---|
515 | 'default_value' => |
---|
516 | array ( |
---|
517 | 0 => |
---|
518 | array ( |
---|
519 | 'nid' => '', |
---|
520 | ), |
---|
521 | ), |
---|
522 | 'default_value_php' => '', |
---|
523 | 'default_value_widget' => |
---|
524 | array ( |
---|
525 | 'field_descriptor_cambio' => |
---|
526 | array ( |
---|
527 | 0 => |
---|
528 | array ( |
---|
529 | 'nid' => '', |
---|
530 | ), |
---|
531 | 'nid' => |
---|
532 | array ( |
---|
533 | 'nid' => |
---|
534 | array ( |
---|
535 | 0 => '', |
---|
536 | ), |
---|
537 | ), |
---|
538 | ), |
---|
539 | ), |
---|
540 | 'required' => 0, |
---|
541 | 'multiple' => '1', |
---|
542 | 'referenceable_types' => |
---|
543 | array ( |
---|
544 | 'causas' => 0, |
---|
545 | 'descriptores' => 0, |
---|
546 | 'ente_planificador' => 0, |
---|
547 | 'page' => 0, |
---|
548 | 'cambios' => 'cambios', |
---|
549 | 'story' => 0, |
---|
550 | 'situacion_actual_preliminar' => 0, |
---|
551 | ), |
---|
552 | 'advanced_view' => '--', |
---|
553 | 'advanced_view_args' => '', |
---|
554 | 'op' => 'Guardar configuraciones del campo', |
---|
555 | 'module' => 'nodereference', |
---|
556 | 'widget_module' => 'nodereference', |
---|
557 | 'columns' => |
---|
558 | array ( |
---|
559 | 'nid' => |
---|
560 | array ( |
---|
561 | 'type' => 'int', |
---|
562 | 'unsigned' => true, |
---|
563 | 'not null' => false, |
---|
564 | 'index' => true, |
---|
565 | ), |
---|
566 | ), |
---|
567 | 'display_settings' => |
---|
568 | array ( |
---|
569 | 'label' => |
---|
570 | array ( |
---|
571 | 'format' => 'above', |
---|
572 | 'exclude' => 0, |
---|
573 | ), |
---|
574 | 'teaser' => |
---|
575 | array ( |
---|
576 | 'format' => 'default', |
---|
577 | 'exclude' => 0, |
---|
578 | ), |
---|
579 | 'full' => |
---|
580 | array ( |
---|
581 | 'format' => 'default', |
---|
582 | 'exclude' => 0, |
---|
583 | ), |
---|
584 | 4 => |
---|
585 | array ( |
---|
586 | 'format' => 'default', |
---|
587 | 'exclude' => 0, |
---|
588 | ), |
---|
589 | 'modal' => |
---|
590 | array ( |
---|
591 | 'format' => 'default', |
---|
592 | 'exclude' => 0, |
---|
593 | ), |
---|
594 | 'inline' => |
---|
595 | array ( |
---|
596 | 'format' => 'default', |
---|
597 | 'exclude' => 0, |
---|
598 | ), |
---|
599 | 'token' => |
---|
600 | array ( |
---|
601 | 'format' => 'default', |
---|
602 | 'exclude' => 0, |
---|
603 | ), |
---|
604 | ), |
---|
605 | ); |
---|
606 | |
---|
607 | //year |
---|
608 | $content['fields'][] = array ( |
---|
609 | 'label' => 'year', |
---|
610 | 'type_name' => 'descriptores', |
---|
611 | 'field_name' => 'field_descriptores_year', |
---|
612 | 'type' => 'number_integer', |
---|
613 | 'widget_type' => 'number', |
---|
614 | 'change' => 'Cambiar información básica', |
---|
615 | 'weight' => '71', |
---|
616 | 'description' => '', |
---|
617 | 'default_value' => |
---|
618 | array ( |
---|
619 | 0 => |
---|
620 | array ( |
---|
621 | 'value' => '0', |
---|
622 | '_error_element' => 'default_value_widget][field_descriptores_year][0][value', |
---|
623 | ), |
---|
624 | ), |
---|
625 | 'default_value_php' => '', |
---|
626 | 'default_value_widget' => NULL, |
---|
627 | 'group' => false, |
---|
628 | 'required' => 0, |
---|
629 | 'multiple' => '0', |
---|
630 | 'min' => '0', |
---|
631 | 'max' => '', |
---|
632 | 'prefix' => '', |
---|
633 | 'suffix' => '', |
---|
634 | 'allowed_values' => '', |
---|
635 | 'allowed_values_php' => '', |
---|
636 | 'op' => 'Guardar configuraciones del campo', |
---|
637 | 'module' => 'number', |
---|
638 | 'widget_module' => 'number', |
---|
639 | 'columns' => |
---|
640 | array ( |
---|
641 | 'value' => |
---|
642 | array ( |
---|
643 | 'type' => 'int', |
---|
644 | 'not null' => false, |
---|
645 | 'sortable' => true, |
---|
646 | ), |
---|
647 | ), |
---|
648 | 'display_settings' => |
---|
649 | array ( |
---|
650 | 'label' => |
---|
651 | array ( |
---|
652 | 'format' => 'above', |
---|
653 | 'exclude' => 0, |
---|
654 | ), |
---|
655 | 'teaser' => |
---|
656 | array ( |
---|
657 | 'format' => 'default', |
---|
658 | 'exclude' => 0, |
---|
659 | ), |
---|
660 | 'full' => |
---|
661 | array ( |
---|
662 | 'format' => 'default', |
---|
663 | 'exclude' => 0, |
---|
664 | ), |
---|
665 | 4 => |
---|
666 | array ( |
---|
667 | 'format' => 'default', |
---|
668 | 'exclude' => 0, |
---|
669 | ), |
---|
670 | 'modal' => |
---|
671 | array ( |
---|
672 | 'format' => 'default', |
---|
673 | 'exclude' => 0, |
---|
674 | ), |
---|
675 | 'inline' => |
---|
676 | array ( |
---|
677 | 'format' => 'default', |
---|
678 | 'exclude' => 0, |
---|
679 | ), |
---|
680 | 'token' => |
---|
681 | array ( |
---|
682 | 'format' => 'default', |
---|
683 | 'exclude' => 0, |
---|
684 | ), |
---|
685 | ), |
---|
686 | ); |
---|
687 | $vocabulary = variable_get('situacion_actual_preliminar_categoria', 0); |
---|
688 | $content['fields'][] = array ( |
---|
689 | 'label' => 'Categorización', |
---|
690 | 'type_name' => 'descriptores', |
---|
691 | 'field_name' => 'field_descriptores_clasificacion', |
---|
692 | 'type' => 'content_taxonomy', |
---|
693 | 'widget_type' => 'content_taxonomy_select', |
---|
694 | 'change' => 'Change basic information', |
---|
695 | 'weight' => '40', |
---|
696 | 'show_depth' => 1, |
---|
697 | 'group_parent' => '0', |
---|
698 | 'description' => '', |
---|
699 | 'default_value' => |
---|
700 | array ( |
---|
701 | 0 => |
---|
702 | array ( |
---|
703 | 'value' => '', |
---|
704 | ), |
---|
705 | ), |
---|
706 | 'default_value_php' => '', |
---|
707 | 'default_value_widget' => |
---|
708 | array ( |
---|
709 | 'field_descriptores_clasificacion' => |
---|
710 | array ( |
---|
711 | 'value' => '', |
---|
712 | ), |
---|
713 | ), |
---|
714 | 'required' => 1, |
---|
715 | 'multiple' => 1, |
---|
716 | 'save_term_node' => 1, |
---|
717 | 'vid' => $vocabulary, |
---|
718 | 'parent' => '0', |
---|
719 | 'parent_php_code' => '', |
---|
720 | 'depth' => '', |
---|
721 | 'op' => 'Save field settings', |
---|
722 | 'module' => 'content_taxonomy', |
---|
723 | 'widget_module' => 'content_taxonomy_options', |
---|
724 | 'columns' => |
---|
725 | array ( |
---|
726 | 'value' => |
---|
727 | array ( |
---|
728 | 'type' => 'int', |
---|
729 | 'not null' => false, |
---|
730 | 'sortable' => false, |
---|
731 | ), |
---|
732 | ), |
---|
733 | 'display_settings' => |
---|
734 | array ( |
---|
735 | 'label' => |
---|
736 | array ( |
---|
737 | 'format' => 'above', |
---|
738 | 'exclude' => 0, |
---|
739 | ), |
---|
740 | 'teaser' => |
---|
741 | array ( |
---|
742 | 'format' => 'default', |
---|
743 | 'exclude' => 0, |
---|
744 | ), |
---|
745 | 'full' => |
---|
746 | array ( |
---|
747 | 'format' => 'default', |
---|
748 | 'exclude' => 0, |
---|
749 | ), |
---|
750 | 4 => |
---|
751 | array ( |
---|
752 | 'format' => 'default', |
---|
753 | 'exclude' => 0, |
---|
754 | ), |
---|
755 | 'inline' => |
---|
756 | array ( |
---|
757 | 'format' => 'default', |
---|
758 | 'exclude' => 0, |
---|
759 | ), |
---|
760 | 'modal' => |
---|
761 | array ( |
---|
762 | 'format' => 'default', |
---|
763 | 'exclude' => 0, |
---|
764 | ), |
---|
765 | 'token' => |
---|
766 | array ( |
---|
767 | 'format' => 'default', |
---|
768 | 'exclude' => 0, |
---|
769 | ), |
---|
770 | ), |
---|
771 | ); |
---|
772 | |
---|
773 | |
---|
774 | |
---|
775 | //campos de causas |
---|
776 | //Field Ente planificador in causas |
---|
777 | $content['fields'][] = array( |
---|
778 | 'label' => 'Ente planificador', |
---|
779 | 'type_name' => 'causas', |
---|
780 | 'field_name' => 'field_ente_planifiador', |
---|
781 | 'type' => 'nodereference', |
---|
782 | 'widget_type' => 'nodereference_select', |
---|
783 | 'change' => 'Change basic information', |
---|
784 | 'weight' => '31', |
---|
785 | 'autocomplete_match' => 'contains', |
---|
786 | 'size' => 60, |
---|
787 | 'description' => '', |
---|
788 | 'default_value' => |
---|
789 | array ( |
---|
790 | 0 => |
---|
791 | array ( |
---|
792 | 'nid' => '', |
---|
793 | ), |
---|
794 | ), |
---|
795 | 'default_value_php' => '', |
---|
796 | 'default_value_widget' => NULL, |
---|
797 | 'required' => 1, |
---|
798 | 'multiple' => '0', |
---|
799 | 'referenceable_types' => |
---|
800 | array ( |
---|
801 | 'ente_planificador' => 'ente_planificador', |
---|
802 | 'causas' => 0, |
---|
803 | 'page' => 0, |
---|
804 | 'situacion_actual' => 0, |
---|
805 | 'situacion_objetivo' => 0, |
---|
806 | 'story' => 0, |
---|
807 | 'situacion_actual_preliminar' => 0, |
---|
808 | ), |
---|
809 | 'advanced_view' => '--', |
---|
810 | 'advanced_view_args' => '', |
---|
811 | 'op' => 'Guardar configuraciones del campo', |
---|
812 | 'module' => 'nodereference', |
---|
813 | 'widget_module' => 'nodereference', |
---|
814 | 'columns' => |
---|
815 | array ( |
---|
816 | 'nid' => |
---|
817 | array ( |
---|
818 | 'type' => 'int', |
---|
819 | 'unsigned' => true, |
---|
820 | 'not null' => false, |
---|
821 | 'index' => true, |
---|
822 | ), |
---|
823 | ), |
---|
824 | 'display_settings' => |
---|
825 | array ( |
---|
826 | 'label' => |
---|
827 | array ( |
---|
828 | 'format' => 'above', |
---|
829 | 'exclude' => 0, |
---|
830 | ), |
---|
831 | 'teaser' => |
---|
832 | array ( |
---|
833 | 'format' => 'default', |
---|
834 | 'exclude' => 0, |
---|
835 | ), |
---|
836 | 'full' => |
---|
837 | array ( |
---|
838 | 'format' => 'default', |
---|
839 | 'exclude' => 0, |
---|
840 | ), |
---|
841 | 4 => |
---|
842 | array ( |
---|
843 | 'format' => 'default', |
---|
844 | 'exclude' => 0, |
---|
845 | ), |
---|
846 | 'modal' => |
---|
847 | array ( |
---|
848 | 'format' => 'default', |
---|
849 | 'exclude' => 0, |
---|
850 | ), |
---|
851 | 'inline' => |
---|
852 | array ( |
---|
853 | 'format' => 'default', |
---|
854 | 'exclude' => 0, |
---|
855 | ), |
---|
856 | 'token' => |
---|
857 | array ( |
---|
858 | 'format' => 'default', |
---|
859 | 'exclude' => 0, |
---|
860 | ), |
---|
861 | ), |
---|
862 | ); |
---|
863 | |
---|
864 | // content causas |
---|
865 | $content['fields'][] = array ( |
---|
866 | 'label' => 'Tipo de causa', |
---|
867 | 'type_name' => 'causas', |
---|
868 | 'field_name' => 'field_tipo_causa', |
---|
869 | 'type' => 'text', |
---|
870 | 'widget_type' => 'optionwidgets_buttons', |
---|
871 | 'change' => 'Change basic information', |
---|
872 | 'weight' => '33', |
---|
873 | 'description' => '', |
---|
874 | 'default_value' => |
---|
875 | array ( |
---|
876 | 0 => |
---|
877 | array ( |
---|
878 | 'value' => 'rule', |
---|
879 | ), |
---|
880 | ), |
---|
881 | 'default_value_php' => '', |
---|
882 | 'default_value_widget' => NULL, |
---|
883 | 'required' => 1, |
---|
884 | 'multiple' => '0', |
---|
885 | 'text_processing' => '0', |
---|
886 | 'max_length' => '', |
---|
887 | 'allowed_values' => '', |
---|
888 | 'allowed_values_php' => '$tipo = array(); |
---|
889 | if (function_exists(\'_sap_tipo_causa\')) { |
---|
890 | $tipo = _sap_tipo_causa(); |
---|
891 | } |
---|
892 | return $tipo;', |
---|
893 | 'op' => 'Guardar configuraciones del campo', |
---|
894 | 'module' => 'text', |
---|
895 | 'widget_module' => 'optionwidgets', |
---|
896 | 'columns' => |
---|
897 | array ( |
---|
898 | 'value' => |
---|
899 | array ( |
---|
900 | 'type' => 'text', |
---|
901 | 'size' => 'big', |
---|
902 | 'not null' => false, |
---|
903 | 'sortable' => true, |
---|
904 | 'views' => true, |
---|
905 | ), |
---|
906 | ), |
---|
907 | 'display_settings' => |
---|
908 | array ( |
---|
909 | 'label' => |
---|
910 | array ( |
---|
911 | 'format' => 'above', |
---|
912 | 'exclude' => 0, |
---|
913 | ), |
---|
914 | 'teaser' => |
---|
915 | array ( |
---|
916 | 'format' => 'default', |
---|
917 | 'exclude' => 0, |
---|
918 | ), |
---|
919 | 'full' => |
---|
920 | array ( |
---|
921 | 'format' => 'default', |
---|
922 | 'exclude' => 0, |
---|
923 | ), |
---|
924 | 4 => |
---|
925 | array ( |
---|
926 | 'format' => 'default', |
---|
927 | 'exclude' => 0, |
---|
928 | ), |
---|
929 | 'modal' => |
---|
930 | array ( |
---|
931 | 'format' => 'default', |
---|
932 | 'exclude' => 0, |
---|
933 | ), |
---|
934 | 'inline' => |
---|
935 | array ( |
---|
936 | 'format' => 'default', |
---|
937 | 'exclude' => 0, |
---|
938 | ), |
---|
939 | 'token' => |
---|
940 | array ( |
---|
941 | 'format' => 'default', |
---|
942 | 'exclude' => 0, |
---|
943 | ), |
---|
944 | ), |
---|
945 | ); |
---|
946 | |
---|
947 | $content['fields'][] = array ( |
---|
948 | 'label' => 'Nivel de control', |
---|
949 | 'type_name' => 'causas', |
---|
950 | 'field_name' => 'field_causa_control', |
---|
951 | 'type' => 'text', |
---|
952 | 'widget_type' => 'optionwidgets_buttons', |
---|
953 | 'change' => 'Change basic information', |
---|
954 | 'weight' => '34', |
---|
955 | 'description' => '', |
---|
956 | 'default_value' => |
---|
957 | array ( |
---|
958 | 0 => |
---|
959 | array ( |
---|
960 | 'value' => 'control', |
---|
961 | ), |
---|
962 | ), |
---|
963 | 'default_value_php' => '', |
---|
964 | 'default_value_widget' => |
---|
965 | array ( |
---|
966 | 'field_causa_control' => |
---|
967 | array ( |
---|
968 | 'value' => 'control', |
---|
969 | ), |
---|
970 | ), |
---|
971 | 'required' => 1, |
---|
972 | 'multiple' => '0', |
---|
973 | 'text_processing' => '0', |
---|
974 | 'max_length' => '', |
---|
975 | 'allowed_values' => '', |
---|
976 | 'allowed_values_php' => '$nivel = array(); |
---|
977 | if (function_exists(\'_sap_nivel_control\')) { |
---|
978 | $nivel = _sap_nivel_control(); |
---|
979 | } |
---|
980 | return $nivel;', |
---|
981 | 'op' => 'Guardar configuraciones del campo', |
---|
982 | 'module' => 'text', |
---|
983 | 'widget_module' => 'optionwidgets', |
---|
984 | 'columns' => |
---|
985 | array ( |
---|
986 | 'value' => |
---|
987 | array ( |
---|
988 | 'type' => 'text', |
---|
989 | 'size' => 'big', |
---|
990 | 'not null' => false, |
---|
991 | 'sortable' => true, |
---|
992 | 'views' => true, |
---|
993 | ), |
---|
994 | ), |
---|
995 | 'display_settings' => |
---|
996 | array ( |
---|
997 | 'label' => |
---|
998 | array ( |
---|
999 | 'format' => 'above', |
---|
1000 | 'exclude' => 0, |
---|
1001 | ), |
---|
1002 | 'teaser' => |
---|
1003 | array ( |
---|
1004 | 'format' => 'default', |
---|
1005 | 'exclude' => 0, |
---|
1006 | ), |
---|
1007 | 'full' => |
---|
1008 | array ( |
---|
1009 | 'format' => 'default', |
---|
1010 | 'exclude' => 0, |
---|
1011 | ), |
---|
1012 | 4 => |
---|
1013 | array ( |
---|
1014 | 'format' => 'default', |
---|
1015 | 'exclude' => 0, |
---|
1016 | ), |
---|
1017 | 'modal' => |
---|
1018 | array ( |
---|
1019 | 'format' => 'default', |
---|
1020 | 'exclude' => 0, |
---|
1021 | ), |
---|
1022 | 'inline' => |
---|
1023 | array ( |
---|
1024 | 'format' => 'default', |
---|
1025 | 'exclude' => 0, |
---|
1026 | ), |
---|
1027 | 'token' => |
---|
1028 | array ( |
---|
1029 | 'format' => 'default', |
---|
1030 | 'exclude' => 0, |
---|
1031 | ), |
---|
1032 | ), |
---|
1033 | ); |
---|
1034 | |
---|
1035 | $content['fields'][] = array ( |
---|
1036 | 'label' => 'Descriptores', |
---|
1037 | 'type_name' => 'causas', |
---|
1038 | 'field_name' => 'field_descriptores_causa', |
---|
1039 | 'type' => 'nodereference', |
---|
1040 | 'widget_type' => 'nodereference_select', |
---|
1041 | 'change' => 'Change basic information', |
---|
1042 | 'weight' => '43', |
---|
1043 | 'autocomplete_match' => 'contains', |
---|
1044 | 'size' => 60, |
---|
1045 | 'description' => '', |
---|
1046 | 'default_value' => |
---|
1047 | array ( |
---|
1048 | 0 => |
---|
1049 | array ( |
---|
1050 | 'nid' => '', |
---|
1051 | ), |
---|
1052 | ), |
---|
1053 | 'default_value_php' => '', |
---|
1054 | 'default_value_widget' => NULL, |
---|
1055 | 'required' => 0, |
---|
1056 | 'multiple' => '1', |
---|
1057 | 'referenceable_types' => |
---|
1058 | array ( |
---|
1059 | 'descriptores' => 'descriptores', |
---|
1060 | 'causas' => 0, |
---|
1061 | 'ente_planificador' => 0, |
---|
1062 | 'page' => 0, |
---|
1063 | 'story' => 0, |
---|
1064 | 'situacion_actual_preliminar' => 0, |
---|
1065 | 'otro' => 0, |
---|
1066 | ), |
---|
1067 | 'advanced_view' => '--', |
---|
1068 | 'advanced_view_args' => '', |
---|
1069 | 'op' => 'Guardar configuraciones del campo', |
---|
1070 | 'module' => 'nodereference', |
---|
1071 | 'widget_module' => 'nodereference', |
---|
1072 | 'columns' => |
---|
1073 | array ( |
---|
1074 | 'nid' => |
---|
1075 | array ( |
---|
1076 | 'type' => 'int', |
---|
1077 | 'unsigned' => true, |
---|
1078 | 'not null' => false, |
---|
1079 | 'index' => true, |
---|
1080 | ), |
---|
1081 | ), |
---|
1082 | 'display_settings' => |
---|
1083 | array ( |
---|
1084 | 'label' => |
---|
1085 | array ( |
---|
1086 | 'format' => 'above', |
---|
1087 | 'exclude' => 0, |
---|
1088 | ), |
---|
1089 | 'teaser' => |
---|
1090 | array ( |
---|
1091 | 'format' => 'default', |
---|
1092 | 'exclude' => 0, |
---|
1093 | ), |
---|
1094 | 'full' => |
---|
1095 | array ( |
---|
1096 | 'format' => 'default', |
---|
1097 | 'exclude' => 0, |
---|
1098 | ), |
---|
1099 | 4 => |
---|
1100 | array ( |
---|
1101 | 'format' => 'default', |
---|
1102 | 'exclude' => 0, |
---|
1103 | ), |
---|
1104 | 'modal' => |
---|
1105 | array ( |
---|
1106 | 'format' => 'default', |
---|
1107 | 'exclude' => 0, |
---|
1108 | ), |
---|
1109 | 'inline' => |
---|
1110 | array ( |
---|
1111 | 'format' => 'default', |
---|
1112 | 'exclude' => 0, |
---|
1113 | ), |
---|
1114 | 'token' => |
---|
1115 | array ( |
---|
1116 | 'format' => 'default', |
---|
1117 | 'exclude' => 0, |
---|
1118 | ), |
---|
1119 | ), |
---|
1120 | ); |
---|
1121 | |
---|
1122 | //year |
---|
1123 | $content['fields'][] = array ( |
---|
1124 | 'label' => 'year', |
---|
1125 | 'type_name' => 'causas', |
---|
1126 | 'field_name' => 'field_causas_year', |
---|
1127 | 'type' => 'number_integer', |
---|
1128 | 'widget_type' => 'number', |
---|
1129 | 'change' => 'Cambiar información básica', |
---|
1130 | 'weight' => '71', |
---|
1131 | 'description' => '', |
---|
1132 | 'default_value' => |
---|
1133 | array ( |
---|
1134 | 0 => |
---|
1135 | array ( |
---|
1136 | 'value' => '0', |
---|
1137 | '_error_element' => 'default_value_widget][field_causas_year][0][value', |
---|
1138 | ), |
---|
1139 | ), |
---|
1140 | 'default_value_php' => '', |
---|
1141 | 'default_value_widget' => NULL, |
---|
1142 | 'group' => false, |
---|
1143 | 'required' => 0, |
---|
1144 | 'multiple' => '0', |
---|
1145 | 'min' => '0', |
---|
1146 | 'max' => '', |
---|
1147 | 'prefix' => '', |
---|
1148 | 'suffix' => '', |
---|
1149 | 'allowed_values' => '', |
---|
1150 | 'allowed_values_php' => '', |
---|
1151 | 'op' => 'Guardar configuraciones del campo', |
---|
1152 | 'module' => 'number', |
---|
1153 | 'widget_module' => 'number', |
---|
1154 | 'columns' => |
---|
1155 | array ( |
---|
1156 | 'value' => |
---|
1157 | array ( |
---|
1158 | 'type' => 'int', |
---|
1159 | 'not null' => false, |
---|
1160 | 'sortable' => true, |
---|
1161 | ), |
---|
1162 | ), |
---|
1163 | 'display_settings' => |
---|
1164 | array ( |
---|
1165 | 'label' => |
---|
1166 | array ( |
---|
1167 | 'format' => 'above', |
---|
1168 | 'exclude' => 0, |
---|
1169 | ), |
---|
1170 | 'teaser' => |
---|
1171 | array ( |
---|
1172 | 'format' => 'default', |
---|
1173 | 'exclude' => 0, |
---|
1174 | ), |
---|
1175 | 'full' => |
---|
1176 | array ( |
---|
1177 | 'format' => 'default', |
---|
1178 | 'exclude' => 0, |
---|
1179 | ), |
---|
1180 | 4 => |
---|
1181 | array ( |
---|
1182 | 'format' => 'default', |
---|
1183 | 'exclude' => 0, |
---|
1184 | ), |
---|
1185 | 'modal' => |
---|
1186 | array ( |
---|
1187 | 'format' => 'default', |
---|
1188 | 'exclude' => 0, |
---|
1189 | ), |
---|
1190 | 'inline' => |
---|
1191 | array ( |
---|
1192 | 'format' => 'default', |
---|
1193 | 'exclude' => 0, |
---|
1194 | ), |
---|
1195 | 'token' => |
---|
1196 | array ( |
---|
1197 | 'format' => 'default', |
---|
1198 | 'exclude' => 0, |
---|
1199 | ), |
---|
1200 | ), |
---|
1201 | ); |
---|
1202 | //posibles formas de solucion |
---|
1203 | $content['fields'][] = array ( |
---|
1204 | 'label' => 'Posibles formas de solución a la causa', |
---|
1205 | 'type_name' => 'causas', |
---|
1206 | 'field_name' => 'field_causa_solucion', |
---|
1207 | 'type' => 'text', |
---|
1208 | 'widget_type' => 'text_textarea', |
---|
1209 | 'change' => 'Change basic information', |
---|
1210 | 'weight' => '41', |
---|
1211 | 'rows' => '5', |
---|
1212 | 'size' => 60, |
---|
1213 | 'description' => 'Descripción de las posibles formas de solución a los hechos problemáticos indicados en los descriptores de la causa', |
---|
1214 | 'default_value' => |
---|
1215 | array ( |
---|
1216 | 0 => |
---|
1217 | array ( |
---|
1218 | 'value' => '', |
---|
1219 | '_error_element' => 'default_value_widget][field_causa_solucion][0][value', |
---|
1220 | ), |
---|
1221 | ), |
---|
1222 | 'default_value_php' => '', |
---|
1223 | 'default_value_widget' => |
---|
1224 | array ( |
---|
1225 | 'field_causa_solucion' => |
---|
1226 | array ( |
---|
1227 | 0 => |
---|
1228 | array ( |
---|
1229 | 'value' => '', |
---|
1230 | '_error_element' => 'default_value_widget][field_causa_solucion][0][value', |
---|
1231 | ), |
---|
1232 | ), |
---|
1233 | ), |
---|
1234 | 'required' => '1', |
---|
1235 | 'multiple' => '1', |
---|
1236 | 'text_processing' => '0', |
---|
1237 | 'max_length' => '', |
---|
1238 | 'allowed_values' => '', |
---|
1239 | 'allowed_values_php' => '', |
---|
1240 | 'op' => 'Guardar configuraciones del campo', |
---|
1241 | 'module' => 'text', |
---|
1242 | 'widget_module' => 'text', |
---|
1243 | 'columns' => |
---|
1244 | array ( |
---|
1245 | 'value' => |
---|
1246 | array ( |
---|
1247 | 'type' => 'text', |
---|
1248 | 'size' => 'big', |
---|
1249 | 'not null' => false, |
---|
1250 | 'sortable' => true, |
---|
1251 | 'views' => true, |
---|
1252 | ), |
---|
1253 | ), |
---|
1254 | 'display_settings' => |
---|
1255 | array ( |
---|
1256 | 'label' => |
---|
1257 | array ( |
---|
1258 | 'format' => 'above', |
---|
1259 | 'exclude' => 0, |
---|
1260 | ), |
---|
1261 | 'teaser' => |
---|
1262 | array ( |
---|
1263 | 'format' => 'default', |
---|
1264 | 'exclude' => 0, |
---|
1265 | ), |
---|
1266 | 'full' => |
---|
1267 | array ( |
---|
1268 | 'format' => 'default', |
---|
1269 | 'exclude' => 0, |
---|
1270 | ), |
---|
1271 | 4 => |
---|
1272 | array ( |
---|
1273 | 'format' => 'default', |
---|
1274 | 'exclude' => 0, |
---|
1275 | ), |
---|
1276 | 'modal' => |
---|
1277 | array ( |
---|
1278 | 'format' => 'default', |
---|
1279 | 'exclude' => 0, |
---|
1280 | ), |
---|
1281 | 'inline' => |
---|
1282 | array ( |
---|
1283 | 'format' => 'default', |
---|
1284 | 'exclude' => 0, |
---|
1285 | ), |
---|
1286 | 'token' => |
---|
1287 | array ( |
---|
1288 | 'format' => 'default', |
---|
1289 | 'exclude' => 0, |
---|
1290 | ), |
---|
1291 | ), |
---|
1292 | ); |
---|
1293 | //Cambios en la Situacion Actual |
---|
1294 | |
---|
1295 | //Field Ente planificador in cambios |
---|
1296 | $content['fields'][] = array( |
---|
1297 | 'label' => 'Ente planificador', |
---|
1298 | 'type_name' => 'cambios', |
---|
1299 | 'field_name' => 'field_cambios_ente', |
---|
1300 | 'type' => 'nodereference', |
---|
1301 | 'widget_type' => 'nodereference_select', |
---|
1302 | 'change' => 'Change basic information', |
---|
1303 | 'weight' => '31', |
---|
1304 | 'autocomplete_match' => 'contains', |
---|
1305 | 'size' => 60, |
---|
1306 | 'description' => '', |
---|
1307 | 'default_value' => |
---|
1308 | array ( |
---|
1309 | 0 => |
---|
1310 | array ( |
---|
1311 | 'nid' => '', |
---|
1312 | ), |
---|
1313 | ), |
---|
1314 | 'default_value_php' => '', |
---|
1315 | 'default_value_widget' => NULL, |
---|
1316 | 'required' => 1, |
---|
1317 | 'multiple' => '0', |
---|
1318 | 'referenceable_types' => |
---|
1319 | array ( |
---|
1320 | 'ente_planificador' => 'ente_planificador', |
---|
1321 | 'causas' => 0, |
---|
1322 | 'page' => 0, |
---|
1323 | 'situacion_actual' => 0, |
---|
1324 | 'situacion_objetivo' => 0, |
---|
1325 | 'story' => 0, |
---|
1326 | 'situacion_actual_preliminar' => 0, |
---|
1327 | ), |
---|
1328 | 'advanced_view' => '--', |
---|
1329 | 'advanced_view_args' => '', |
---|
1330 | 'op' => 'Guardar configuraciones del campo', |
---|
1331 | 'module' => 'nodereference', |
---|
1332 | 'widget_module' => 'nodereference', |
---|
1333 | 'columns' => |
---|
1334 | array ( |
---|
1335 | 'nid' => |
---|
1336 | array ( |
---|
1337 | 'type' => 'int', |
---|
1338 | 'unsigned' => true, |
---|
1339 | 'not null' => false, |
---|
1340 | 'index' => true, |
---|
1341 | ), |
---|
1342 | ), |
---|
1343 | 'display_settings' => |
---|
1344 | array ( |
---|
1345 | 'label' => |
---|
1346 | array ( |
---|
1347 | 'format' => 'above', |
---|
1348 | 'exclude' => 0, |
---|
1349 | ), |
---|
1350 | 'teaser' => |
---|
1351 | array ( |
---|
1352 | 'format' => 'default', |
---|
1353 | 'exclude' => 0, |
---|
1354 | ), |
---|
1355 | 'full' => |
---|
1356 | array ( |
---|
1357 | 'format' => 'default', |
---|
1358 | 'exclude' => 0, |
---|
1359 | ), |
---|
1360 | 4 => |
---|
1361 | array ( |
---|
1362 | 'format' => 'default', |
---|
1363 | 'exclude' => 0, |
---|
1364 | ), |
---|
1365 | 'modal' => |
---|
1366 | array ( |
---|
1367 | 'format' => 'default', |
---|
1368 | 'exclude' => 0, |
---|
1369 | ), |
---|
1370 | 'inline' => |
---|
1371 | array ( |
---|
1372 | 'format' => 'default', |
---|
1373 | 'exclude' => 0, |
---|
1374 | ), |
---|
1375 | 'token' => |
---|
1376 | array ( |
---|
1377 | 'format' => 'default', |
---|
1378 | 'exclude' => 0, |
---|
1379 | ), |
---|
1380 | ), |
---|
1381 | ); |
---|
1382 | |
---|
1383 | //Field descriptor in cambios |
---|
1384 | $content['fields'][] = array( |
---|
1385 | 'label' => 'Descriptor', |
---|
1386 | 'type_name' => 'cambios', |
---|
1387 | 'field_name' => 'field_cambios_descriptor', |
---|
1388 | 'type' => 'nodereference', |
---|
1389 | 'widget_type' => 'nodereference_select', |
---|
1390 | 'change' => 'Change basic information', |
---|
1391 | 'weight' => '31', |
---|
1392 | 'autocomplete_match' => 'contains', |
---|
1393 | 'size' => 60, |
---|
1394 | 'description' => '', |
---|
1395 | 'default_value' => |
---|
1396 | array ( |
---|
1397 | 0 => |
---|
1398 | array ( |
---|
1399 | 'nid' => '', |
---|
1400 | ), |
---|
1401 | ), |
---|
1402 | 'default_value_php' => '', |
---|
1403 | 'default_value_widget' => NULL, |
---|
1404 | 'required' => 1, |
---|
1405 | 'multiple' => '0', |
---|
1406 | 'referenceable_types' => |
---|
1407 | array ( |
---|
1408 | 'descriptores' => 'descriptores', |
---|
1409 | 'causas' => 0, |
---|
1410 | 'ente_planificador' => 0, |
---|
1411 | 'page' => 0, |
---|
1412 | 'story' => 0, |
---|
1413 | 'situacion_actual_preliminar' => 0, |
---|
1414 | 'otro' => 0, |
---|
1415 | ), |
---|
1416 | 'advanced_view' => '--', |
---|
1417 | 'advanced_view_args' => '', |
---|
1418 | 'op' => 'Guardar configuraciones del campo', |
---|
1419 | 'module' => 'nodereference', |
---|
1420 | 'widget_module' => 'nodereference', |
---|
1421 | 'columns' => |
---|
1422 | array ( |
---|
1423 | 'nid' => |
---|
1424 | array ( |
---|
1425 | 'type' => 'int', |
---|
1426 | 'unsigned' => true, |
---|
1427 | 'not null' => false, |
---|
1428 | 'index' => true, |
---|
1429 | ), |
---|
1430 | ), |
---|
1431 | 'display_settings' => |
---|
1432 | array ( |
---|
1433 | 'label' => |
---|
1434 | array ( |
---|
1435 | 'format' => 'above', |
---|
1436 | 'exclude' => 0, |
---|
1437 | ), |
---|
1438 | 'teaser' => |
---|
1439 | array ( |
---|
1440 | 'format' => 'default', |
---|
1441 | 'exclude' => 0, |
---|
1442 | ), |
---|
1443 | 'full' => |
---|
1444 | array ( |
---|
1445 | 'format' => 'default', |
---|
1446 | 'exclude' => 0, |
---|
1447 | ), |
---|
1448 | 4 => |
---|
1449 | array ( |
---|
1450 | 'format' => 'default', |
---|
1451 | 'exclude' => 0, |
---|
1452 | ), |
---|
1453 | 'modal' => |
---|
1454 | array ( |
---|
1455 | 'format' => 'default', |
---|
1456 | 'exclude' => 0, |
---|
1457 | ), |
---|
1458 | 'inline' => |
---|
1459 | array ( |
---|
1460 | 'format' => 'default', |
---|
1461 | 'exclude' => 0, |
---|
1462 | ), |
---|
1463 | 'token' => |
---|
1464 | array ( |
---|
1465 | 'format' => 'default', |
---|
1466 | 'exclude' => 0, |
---|
1467 | ), |
---|
1468 | ), |
---|
1469 | ); |
---|
1470 | //meta asociada al cambio |
---|
1471 | $content['fields'][] = array ( |
---|
1472 | 'label' => 'Meta asociada al cambio', |
---|
1473 | 'type_name' => 'cambios', |
---|
1474 | 'field_name' => 'field_cambios_meta', |
---|
1475 | 'type' => 'cck_plan_fields_combine_term', |
---|
1476 | 'widget_type' => 'cck_plan_fields_combine_term', |
---|
1477 | 'change' => 'Cambiar información básica', |
---|
1478 | 'weight' => '31', |
---|
1479 | 'min' => '0', |
---|
1480 | 'max' => '', |
---|
1481 | 'description' => '', |
---|
1482 | 'default_value' => |
---|
1483 | array ( |
---|
1484 | 0 => |
---|
1485 | array ( |
---|
1486 | 'tid' => '767', |
---|
1487 | 'value' => '0', |
---|
1488 | '_error_element' => 'value', |
---|
1489 | ), |
---|
1490 | ), |
---|
1491 | 'default_value_php' => '', |
---|
1492 | 'default_value_widget' => NULL, |
---|
1493 | 'group' => false, |
---|
1494 | 'required' => 0, |
---|
1495 | 'multiple' => '1', |
---|
1496 | 'vid' => variable_get('proyectos_operativos_extra_unidad', 0), |
---|
1497 | 'vtid' => |
---|
1498 | array ( |
---|
1499 | ), |
---|
1500 | 'cck_plan_fields_simple_type' => 'int', |
---|
1501 | 'cck_plan_fields_simple_titulo_term' => 'Unidad de Medida', |
---|
1502 | 'cck_plan_fields_simple_titulo' => 'Cantidad', |
---|
1503 | 'op' => 'Guardar configuraciones del campo', |
---|
1504 | 'module' => 'cck_plan_fields_combine_term', |
---|
1505 | 'widget_module' => 'cck_plan_fields_combine_term', |
---|
1506 | 'columns' => |
---|
1507 | array ( |
---|
1508 | 'tid' => |
---|
1509 | array ( |
---|
1510 | 'type' => 'int', |
---|
1511 | 'not null' => false, |
---|
1512 | 'sortable' => true, |
---|
1513 | 'views' => true, |
---|
1514 | ), |
---|
1515 | 'value' => |
---|
1516 | array ( |
---|
1517 | 'type' => 'numeric', |
---|
1518 | 'size' => 'normal', |
---|
1519 | 'not null' => true, |
---|
1520 | 'default' => 0, |
---|
1521 | 'precision' => 32, |
---|
1522 | 'scale' => 0, |
---|
1523 | ), |
---|
1524 | ), |
---|
1525 | 'display_settings' => |
---|
1526 | array ( |
---|
1527 | 'weight' => '31', |
---|
1528 | 'parent' => '', |
---|
1529 | 'label' => |
---|
1530 | array ( |
---|
1531 | 'format' => 'above', |
---|
1532 | ), |
---|
1533 | 'teaser' => |
---|
1534 | array ( |
---|
1535 | 'format' => 'default', |
---|
1536 | 'exclude' => 0, |
---|
1537 | ), |
---|
1538 | 'full' => |
---|
1539 | array ( |
---|
1540 | 'format' => 'default', |
---|
1541 | 'exclude' => 0, |
---|
1542 | ), |
---|
1543 | 4 => |
---|
1544 | array ( |
---|
1545 | 'format' => 'default', |
---|
1546 | 'exclude' => 0, |
---|
1547 | ), |
---|
1548 | 'modal' => |
---|
1549 | array ( |
---|
1550 | 'format' => 'default', |
---|
1551 | 'exclude' => 0, |
---|
1552 | ), |
---|
1553 | 'inline' => |
---|
1554 | array ( |
---|
1555 | 'format' => 'default', |
---|
1556 | 'exclude' => 0, |
---|
1557 | ), |
---|
1558 | 'token' => |
---|
1559 | array ( |
---|
1560 | 'format' => 'default', |
---|
1561 | 'exclude' => 0, |
---|
1562 | ), |
---|
1563 | ), |
---|
1564 | ); |
---|
1565 | //plan de la patria |
---|
1566 | $pdlp = variable_get('proyectos_operativos_pdlp', 0) ? variable_get('proyectos_operativos_pdlp', 0) : 11; |
---|
1567 | $content['fields'][] = array ( |
---|
1568 | 'label' => 'Plan de la Patria', |
---|
1569 | 'type_name' => 'cambios', |
---|
1570 | 'field_name' => 'field_cambios_pdp', |
---|
1571 | 'type' => 'content_taxonomy', |
---|
1572 | 'widget_type' => 'content_taxonomy_select', |
---|
1573 | 'change' => 'Change basic information', |
---|
1574 | 'weight' => '40', |
---|
1575 | 'show_depth' => 1, |
---|
1576 | 'group_parent' => '0', |
---|
1577 | 'description' => '', |
---|
1578 | 'default_value' => |
---|
1579 | array ( |
---|
1580 | 0 => |
---|
1581 | array ( |
---|
1582 | 'value' => '', |
---|
1583 | ), |
---|
1584 | ), |
---|
1585 | 'default_value_php' => '', |
---|
1586 | 'default_value_widget' => |
---|
1587 | array ( |
---|
1588 | 'field_cambios_pdp' => |
---|
1589 | array ( |
---|
1590 | 'value' => '', |
---|
1591 | ), |
---|
1592 | ), |
---|
1593 | 'required' => 1, |
---|
1594 | 'multiple' => 1, |
---|
1595 | 'save_term_node' => 1, |
---|
1596 | 'vid' => $pdlp, |
---|
1597 | 'parent' => '0', |
---|
1598 | 'parent_php_code' => '', |
---|
1599 | 'depth' => '', |
---|
1600 | 'op' => 'Save field settings', |
---|
1601 | 'module' => 'content_taxonomy', |
---|
1602 | 'widget_module' => 'content_taxonomy_options', |
---|
1603 | 'columns' => |
---|
1604 | array ( |
---|
1605 | 'value' => |
---|
1606 | array ( |
---|
1607 | 'type' => 'int', |
---|
1608 | 'not null' => false, |
---|
1609 | 'sortable' => false, |
---|
1610 | ), |
---|
1611 | ), |
---|
1612 | 'display_settings' => |
---|
1613 | array ( |
---|
1614 | 'label' => |
---|
1615 | array ( |
---|
1616 | 'format' => 'above', |
---|
1617 | 'exclude' => 0, |
---|
1618 | ), |
---|
1619 | 'teaser' => |
---|
1620 | array ( |
---|
1621 | 'format' => 'default', |
---|
1622 | 'exclude' => 0, |
---|
1623 | ), |
---|
1624 | 'full' => |
---|
1625 | array ( |
---|
1626 | 'format' => 'default', |
---|
1627 | 'exclude' => 0, |
---|
1628 | ), |
---|
1629 | 4 => |
---|
1630 | array ( |
---|
1631 | 'format' => 'default', |
---|
1632 | 'exclude' => 0, |
---|
1633 | ), |
---|
1634 | 'inline' => |
---|
1635 | array ( |
---|
1636 | 'format' => 'default', |
---|
1637 | 'exclude' => 0, |
---|
1638 | ), |
---|
1639 | 'modal' => |
---|
1640 | array ( |
---|
1641 | 'format' => 'default', |
---|
1642 | 'exclude' => 0, |
---|
1643 | ), |
---|
1644 | 'token' => |
---|
1645 | array ( |
---|
1646 | 'format' => 'default', |
---|
1647 | 'exclude' => 0, |
---|
1648 | ), |
---|
1649 | ), |
---|
1650 | ); |
---|
1651 | $carabobo = variable_get('situacion_actual_preliminar_plan_carab', 0); |
---|
1652 | //plan carabobo |
---|
1653 | $content['fields'][] = array ( |
---|
1654 | 'label' => 'Plan Campaña Carabobo', |
---|
1655 | 'type_name' => 'cambios', |
---|
1656 | 'field_name' => 'field_cambios_carabobo', |
---|
1657 | 'type' => 'content_taxonomy', |
---|
1658 | 'widget_type' => 'content_taxonomy_select', |
---|
1659 | 'change' => 'Change basic information', |
---|
1660 | 'weight' => '40', |
---|
1661 | 'show_depth' => 1, |
---|
1662 | 'group_parent' => '0', |
---|
1663 | 'description' => '', |
---|
1664 | 'default_value' => |
---|
1665 | array ( |
---|
1666 | 0 => |
---|
1667 | array ( |
---|
1668 | 'value' => '', |
---|
1669 | ), |
---|
1670 | ), |
---|
1671 | 'default_value_php' => '', |
---|
1672 | 'default_value_widget' => |
---|
1673 | array ( |
---|
1674 | 'field_cambios_carabobo' => |
---|
1675 | array ( |
---|
1676 | 'value' => '', |
---|
1677 | ), |
---|
1678 | ), |
---|
1679 | 'required' => 1, |
---|
1680 | 'multiple' => 1, |
---|
1681 | 'save_term_node' => 1, |
---|
1682 | 'vid' => $carabobo, |
---|
1683 | 'parent' => '0', |
---|
1684 | 'parent_php_code' => '', |
---|
1685 | 'depth' => '', |
---|
1686 | 'op' => 'Save field settings', |
---|
1687 | 'module' => 'content_taxonomy', |
---|
1688 | 'widget_module' => 'content_taxonomy_options', |
---|
1689 | 'columns' => |
---|
1690 | array ( |
---|
1691 | 'value' => |
---|
1692 | array ( |
---|
1693 | 'type' => 'int', |
---|
1694 | 'not null' => false, |
---|
1695 | 'sortable' => false, |
---|
1696 | ), |
---|
1697 | ), |
---|
1698 | 'display_settings' => |
---|
1699 | array ( |
---|
1700 | 'label' => |
---|
1701 | array ( |
---|
1702 | 'format' => 'above', |
---|
1703 | 'exclude' => 0, |
---|
1704 | ), |
---|
1705 | 'teaser' => |
---|
1706 | array ( |
---|
1707 | 'format' => 'default', |
---|
1708 | 'exclude' => 0, |
---|
1709 | ), |
---|
1710 | 'full' => |
---|
1711 | array ( |
---|
1712 | 'format' => 'default', |
---|
1713 | 'exclude' => 0, |
---|
1714 | ), |
---|
1715 | 4 => |
---|
1716 | array ( |
---|
1717 | 'format' => 'default', |
---|
1718 | 'exclude' => 0, |
---|
1719 | ), |
---|
1720 | 'inline' => |
---|
1721 | array ( |
---|
1722 | 'format' => 'default', |
---|
1723 | 'exclude' => 0, |
---|
1724 | ), |
---|
1725 | 'modal' => |
---|
1726 | array ( |
---|
1727 | 'format' => 'default', |
---|
1728 | 'exclude' => 0, |
---|
1729 | ), |
---|
1730 | 'token' => |
---|
1731 | array ( |
---|
1732 | 'format' => 'default', |
---|
1733 | 'exclude' => 0, |
---|
1734 | ), |
---|
1735 | ), |
---|
1736 | ); |
---|
1737 | |
---|
1738 | |
---|
1739 | //se crean los campos para diferenciar los distintos tipos de planes |
---|
1740 | $node_types = situacion_actual_preliminar_node_info(); |
---|
1741 | $planns = _situacion_actual_preliminar_get_planns(); |
---|
1742 | $create = array(); |
---|
1743 | foreach ($planns as $plann) { |
---|
1744 | if (!isset($create[$plann['plan']])) { |
---|
1745 | $create[$plann['plan']] = $plann['plan']; |
---|
1746 | foreach ($node_types as $type_node => $type) { |
---|
1747 | $content['fields'][] = array ( |
---|
1748 | 'label' => $plann['title'], |
---|
1749 | 'type_name' => $type_node, |
---|
1750 | 'field_name' => 'field_' . $type_node . '_' . $plann['short'], |
---|
1751 | 'type' => 'number_integer', |
---|
1752 | 'widget_type' => 'optionwidgets_select', |
---|
1753 | 'change' => 'Cambiar información básica', |
---|
1754 | 'weight' => '71', |
---|
1755 | 'description' => '', |
---|
1756 | 'default_value' => |
---|
1757 | array ( |
---|
1758 | 0 => |
---|
1759 | array ( |
---|
1760 | 'value' => '0', |
---|
1761 | ), |
---|
1762 | ), |
---|
1763 | 'default_value_php' => '', |
---|
1764 | 'default_value_widget' => NULL, |
---|
1765 | 'group' => false, |
---|
1766 | 'required' => 0, |
---|
1767 | 'multiple' => '0', |
---|
1768 | 'min' => '0', |
---|
1769 | 'max' => '', |
---|
1770 | 'prefix' => '', |
---|
1771 | 'suffix' => '', |
---|
1772 | 'allowed_values' => '0 |
---|
1773 | 1', |
---|
1774 | 'allowed_values_php' => '', |
---|
1775 | 'op' => 'Guardar configuraciones del campo', |
---|
1776 | 'module' => 'number', |
---|
1777 | 'widget_module' => 'optionwidgets', |
---|
1778 | 'columns' => |
---|
1779 | array ( |
---|
1780 | 'value' => |
---|
1781 | array ( |
---|
1782 | 'type' => 'int', |
---|
1783 | 'not null' => false, |
---|
1784 | 'sortable' => true, |
---|
1785 | ), |
---|
1786 | ), |
---|
1787 | 'display_settings' => |
---|
1788 | array ( |
---|
1789 | 'label' => |
---|
1790 | array ( |
---|
1791 | 'format' => 'above', |
---|
1792 | 'exclude' => 0, |
---|
1793 | ), |
---|
1794 | 'teaser' => |
---|
1795 | array ( |
---|
1796 | 'format' => 'default', |
---|
1797 | 'exclude' => 0, |
---|
1798 | ), |
---|
1799 | 'full' => |
---|
1800 | array ( |
---|
1801 | 'format' => 'default', |
---|
1802 | 'exclude' => 0, |
---|
1803 | ), |
---|
1804 | 4 => |
---|
1805 | array ( |
---|
1806 | 'format' => 'default', |
---|
1807 | 'exclude' => 0, |
---|
1808 | ), |
---|
1809 | 'modal' => |
---|
1810 | array ( |
---|
1811 | 'format' => 'default', |
---|
1812 | 'exclude' => 0, |
---|
1813 | ), |
---|
1814 | 'inline' => |
---|
1815 | array ( |
---|
1816 | 'format' => 'default', |
---|
1817 | 'exclude' => 0, |
---|
1818 | ), |
---|
1819 | 'token' => |
---|
1820 | array ( |
---|
1821 | 'format' => 'default', |
---|
1822 | 'exclude' => 0, |
---|
1823 | ), |
---|
1824 | ), |
---|
1825 | ); |
---|
1826 | } |
---|
1827 | } |
---|
1828 | } |
---|
1829 | return $content; |
---|
1830 | } |
---|