source: sipes/0.3-modules/proyectos_operativos_mcti/proyectos_operativos_mcti.install @ 307d09d

stableversion-3.0
Last change on this file since 307d09d was 303fae2, checked in by José Gregorio Puentes <jpuentes@…>, 9 años ago

se agregaron los modulos

  • Propiedad mode establecida a 100755
File size: 108.3 KB
Línea 
1<?php
2  /**
3  *
4  * Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana
5  * @file proyectos_operativos_nueva_etapa.install
6  * Drupal part Module to install 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 - Ing. Jose Puentes
24  * @date 2014-12-04 // (a&#241;o-mes-dia)
25  * @version 0.2 // (0.1)
26  *
27  */
28 
29/*
30 * Implementation of hook_install
31 */
32 function proyectos_operativos_mcti_install() {
33   //colocar el modulo proyectos_operativos_mcti entre los ultimos a leer
34   db_query("UPDATE {system} SET weight = 5 WHERE name = 'proyectos_operativos_mcti'");
35   drupal_install_schema('proyectos_operativos_mcti');
36   $rol = array(
37     0 => 'Enlace Revisor',
38   );
39   proyectos_operativos_mcti_create_permisos($rol);
40   content_notify('install', 'proyectos_operativos_mcti');
41 }
42
43/*
44 * Implementation of hook_enable()
45 */
46function proyectos_operativos_mcti_enable() {
47  // Notify content module when this module is uninstalled.ent_notify('enable', 'proyectos_operativos');
48  include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc');
49  _proyectos_operativos_mcti_install_type_create_field();
50}
51
52/*
53 * _proyectos_operativos_mcti_install_type_create_field
54 * Crear los tipos de contenidos necesarios para el funcionamiento del modulo
55 */
56function _proyectos_operativos_mcti_install_type_create_field() {
57          // Load fields.
58        $proyectos_operativos_fields = _proyectos_operativos_mcti_load_fields();
59        $create_field = FALSE;
60        if (count($proyectos_operativos_fields['fields'])) {
61        foreach ($proyectos_operativos_fields['fields'] as $proyectos_operativos_inserts) {
62        $instances = content_field_instance_read(array(
63                'field_name' => $proyectos_operativos_inserts['field_name'],
64                'type_name' => $proyectos_operativos_inserts['type_name']
65         ));
66       if (count($instances) < 1) {
67         // Only add the field if it doesn't exist. Don't overwrite any changes.
68         $field_create = content_field_instance_create($proyectos_operativos_inserts, FALSE);
69         drupal_set_message(t("Saved field %typefield in content type %typecontent", array('%typefield' => $proyectos_operativos_inserts['label'], '%typecontent' => $proyectos_operativos_inserts['type_name'])));
70      }
71    }
72  }
73}
74
75
76/*
77 * Implementation of hook_uninstall
78 */
79 function proyectos_operativos_mcti_uninstall() {
80   drupal_uninstall_schema('proyectos_operativos_mcti');
81   content_notify('uninstall', 'proyectos_operativos_mcti');
82  include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc');
83  _proyectos_operativos_mcti_install_type_remove_field();
84 }
85
86/*
87 * Elimina los campos que proporciona el modulo
88 */
89function _proyectos_operativos_mcti_install_type_remove_field() {
90  // Load fields.
91  $proyectos_operativos_fields = _proyectos_operativos_mcti_load_fields();
92  $remove_field = FALSE;
93  if (count($proyectos_operativos_fields['fields'])) {
94    foreach ($proyectos_operativos_fields['fields'] as $proyectos_operativos_inserts) {
95      $instances = content_field_instance_read(array(
96        'field_name' => $proyectos_operativos_inserts['field_name'],
97        'type_name' => $proyectos_operativos_inserts['type_name']
98      ));
99      if (count($instances)) {
100        // Only add the field if it doesn't exist. Don't overwrite any changes.
101        content_field_instance_delete($proyectos_operativos_inserts['field_name'], $proyectos_operativos_inserts['type_name']);
102        drupal_set_message(t("Removed field %typefield in content type %typecontent", array('%typefield' => $proyectos_operativos_inserts['label'], '%typecontent' => $proyectos_operativos_inserts['type_name'])));
103      }
104    }
105  }
106}
107
108/*
109 * Implementation of hook_schema
110 */
111function proyectos_operativos_mcti_schema() {
112  $schema['proyectos_operativos_asignados'] = array(
113    'description' => 'Proyectos operativos asignados.',
114    'fields' => array(
115      'nid_node' => array(
116        'description' => 'nid del nodo.',
117        'type' => 'int',
118        'unsigned' => TRUE,
119        'not null' => TRUE,
120        'default' => 0,
121      ),
122      'uid_users' => array(
123        'description' => 'Uid del usuario al que fue asignado el proyecto.',
124        'type' => 'int',
125        'unsigned' => TRUE,
126        'not null' => TRUE,
127        'default' => 0,
128      ),
129    ),
130    'indexes' => array(
131      'nid_node' => array('nid_node'),
132      'uid_users' => array('uid_users'),
133    ),
134    'primary key' => array('nid_node'),
135  );
136  return $schema;
137}
138
139/*
140 * Crea los permisos por rol
141 */
142 function proyectos_operativos_mcti_create_permisos($roles) {
143   $permisos = array(
144      0 => 'review proyectos operativos',
145   );
146   foreach($roles as $rol) {
147    $role = proyectos_operativos_mcti_get_role($rol);
148    if($role)  {
149      $permissions = $permisos;
150      // Check to see if there are existing permissions
151      db_query("INSERT INTO {permission} (rid, perm, tid) VALUES (%d, '%s', 0)", $role->rid, implode(', ', $permissions), 0);
152     }
153   }
154 }
155
156/*
157 * Elimina un rol y sus permisos
158 */
159 function proyectos_operativos_mcti_delete_role($role_name) {
160  // Look up the role to see if it exists already
161  $role = proyectos_operativos_mcti_get_role($role_name);
162  if ($role) {
163     db_query('DELETE FROM {role} WHERE rid = %d', $role->rid);
164     db_query('DELETE FROM {permission} WHERE rid = %d', $role->rid);
165     // Update the users who have this role set:
166     db_query('DELETE FROM {users_roles} WHERE rid = %d', $role->rid);
167     return $role;
168   }
169   return FALSE;
170 }
171
172/*
173 * Consulta un rol
174 */
175 function proyectos_operativos_mcti_get_role($role_name) {
176   $role = db_fetch_object(db_query("SELECT * FROM {role} r WHERE r.name = '%s'", $role_name));
177   return $role;
178 }
179
180/*
181 * _proyectos_operativos_load_fields
182 * Crear los tipos de contenidos necesarios para el funcionamiento del modulo
183 */
184 function _proyectos_operativos_mcti_load_fields() {
185   
186
187   $content = array();
188   $content['fields'] = array();
189   //definicion del campo plan sectorial
190   $content['fields'][] = array (
191     'label' => 'Plan Sectorial',
192     'type_name' => 'proyectos_operativos',
193     'field_name' => 'field_proyecto_plan_sectorial',
194     'type' => 'content_taxonomy',
195     'widget_type' => 'content_taxonomy_select',
196     'change' => 'Change basic information',
197     'weight' => '20',
198     'show_depth' => 1,
199     'group_parent' => '0',
200     'description' => 'Plan Sectorial',
201     'default_value' => array (
202       0 => array (
203         'value' => '',
204       ),
205     ),
206     'default_value_php' => '',
207     'default_value_widget' => array (
208       'field_proyecto_plan_sectorial' => array (
209         'value' => '',
210       ),
211     ),
212     'required' => 1,
213     'multiple' => '0',
214     'save_term_node' => 0,
215     'vid' => variable_get('ente_planificador_sector_Ambitos', 0),
216     'parent' => '0',
217     'parent_php_code' => '',
218     'depth' => '',
219     'op' => 'Save field settings',
220     'module' => 'content_taxonomy',
221     'widget_module' => 'content_taxonomy_options',
222     'columns' => array (
223      'value' => array (
224         'type' => 'int',
225         'not null' => false,
226         'sortable' => false,
227       ),
228    ),
229   'display_settings' => array (
230     'label' => array (
231       'format' => 'above',
232       'exclude' => 0,
233     ),
234     'teaser' => array (
235       'format' => 'default',
236       'exclude' => 0,
237     ),
238     'full' => array (
239       'format' => 'default',
240       'exclude' => 0,
241     ),
242     4 => array (
243       'format' => 'default',
244       'exclude' => 0,
245     ),
246     'inline' => array (
247       'format' => 'default',
248       'exclude' => 0,
249     ),
250     'modal' => array (
251       'format' => 'default',
252       'exclude' => 0,
253      ),
254      'token' => array (
255        'format' => 'default',
256        'exclude' => 0,
257      ),
258    ),
259   );
260   //definicion del campo plan de la patria
261   $content['fields'][] = array (
262     'label' => 'Plan de la Patria',
263     'type_name' => 'proyectos_operativos',
264     'field_name' => 'field_proyecto_plan_de_la_patria',
265     'type' => 'content_taxonomy',
266     'widget_type' => 'content_taxonomy_select',
267     'change' => 'Change basic information',
268     'weight' => '20',
269     'show_depth' => 1,
270     'group_parent' => '0',
271     'description' => 'Vinculación con el Plan de la Patria',
272     'default_value' => array (
273       0 => array (
274         'value' => '',
275       ),
276     ),
277     'default_value_php' => '',
278     'default_value_widget' => array (
279       'field_proyecto_plan_sectorial' => array (
280        'value' => '',
281       ),
282     ),
283     'required' => 1,
284     'multiple' => '0',
285     'save_term_node' => 0,
286     'vid' => variable_get('proyectos_operativos_pdlp1', 0),
287     'parent' => '0',
288     'parent_php_code' => '',
289     'depth' => '',
290     'op' => 'Save field settings',
291     'module' => 'content_taxonomy',
292     'widget_module' => 'content_taxonomy_options',
293     'columns' => array (
294       'value' => array (
295         'type' => 'int',
296         'not null' => false,
297         'sortable' => false,
298       ),
299     ),
300     'display_settings' => array (
301       'label' => array (
302         'format' => 'above',
303         'exclude' => 0,
304       ),
305       'teaser' => array (
306         'format' => 'default',
307         'exclude' => 0,
308       ),
309       'full' => array (
310         'format' => 'default',
311         'exclude' => 0,
312       ),
313       4 => array (
314         'format' => 'default',
315         'exclude' => 0,
316       ),
317       'inline' => array (
318         'format' => 'default',
319         'exclude' => 0,
320       ),
321       'modal' => array (
322         'format' => 'default',
323         'exclude' => 0,
324       ),
325       'token' => array (
326         'format' => 'default',
327         'exclude' => 0,
328       ),
329     ),
330   );
331     //anadiendo el campo tipo de impacto
332   $content['fields'][] = array (
333    'label' => 'Por factor biótico y abiótico',
334    'type_name' => 'proyectos_operativos',
335    'field_name' => 'field_tipo_factores',
336    'type' => 'text',
337    'widget_type' => 'optionwidgets_select',
338    'change' => 'Change basic information',
339    'weight' => '36',
340    'description' => '',
341    'default_value' =>
342    array (
343      0 =>
344      array (
345        'value' => '0 ',
346      ),
347    ),
348    'default_value_php' => '',
349    'default_value_widget' =>
350    array (
351      'field_causa_posible' =>
352      array (
353        'value' => '0 ',
354      ),
355    ),
356    'required' => 1,
357    'multiple' => '0',
358    'text_processing' => '0',
359    'max_length' => '',
360    'allowed_values' => '0| seleccione
361    1| Agua
362    2| Aire
363    3| Suelo
364    4| Flora
365    5| Fauna
366    6| Sónico
367    7| No aplica
368    8| Multifactorial',
369    'allowed_values_php' => '',
370    'op' => 'Guardar configuraciones del campo',
371    'module' => 'text',
372    'widget_module' => 'optionwidgets',
373    'columns' =>
374    array (
375      'value' =>
376      array (
377        'type' => 'text',
378        'size' => 'big',
379        'not null' => false,
380        'sortable' => true,
381        'views' => true,
382      ),
383    ),
384    'display_settings' =>
385    array (
386      'label' =>
387      array (
388        'format' => 'above',
389        'exclude' => 0,
390      ),
391      'teaser' =>
392      array (
393        'format' => 'default',
394        'exclude' => 0,
395      ),
396      'full' =>
397      array (
398        'format' => 'default',
399        'exclude' => 0,
400      ),
401      4 =>
402      array (
403        'format' => 'default',
404        'exclude' => 0,
405      ),
406      'modal' =>
407      array (
408        'format' => 'default',
409        'exclude' => 0,
410      ),
411      'inline' =>
412      array (
413        'format' => 'default',
414        'exclude' => 0,
415      ),
416      'token' =>
417      array (
418        'format' => 'default',
419        'exclude' => 0,
420      ),
421    ),
422  );
423  //campo cuales son esos impactos Multifactorial
424  $content['fields'][] = array (
425    'label' => 'Impacto Multifactorial',
426    'type_name' => 'proyectos_operativos',
427    'field_name' => 'field_factor_impact_multifc',
428    'type' => 'text',
429    'widget_type' => 'text_textarea',
430    'change' => 'Change basic information',
431    'weight' => '37',
432    'rows' => '5',
433    'size' => 60,
434    'description' => '',
435    'default_value' => array (
436      0 => array (
437        'value' => '',
438        '_error_element' => 'default_value_widget][field_factor_impact_multifc][0][value',
439      ),
440    ),
441    'default_value_php' => '',
442    'default_value_widget' => array (
443      'field_factor_impact_multifc' => array (
444        0 => array (
445          'value' => '',
446          '_error_element' => 'default_value_widget][field_factor_impact_multifc][0][value',
447        ),
448      ),
449    ),
450    'required' => 0,
451    'multiple' => '0',
452    'text_processing' => '0',
453    'max_length' => '',
454    'op' => 'Save field settings',
455    'module' => 'text',
456    'widget_module' => 'text',
457    'columns' => array (
458      'value' => array (
459        'type' => 'text',
460        'size' => 'big',
461        'not null' => false,
462        'sortable' => true,
463        'views' => true,
464      ),
465    ),
466    'display_settings' => array (
467      'label' => array (
468        'format' => 'above',
469        'exclude' => 0,
470      ),
471      'teaser' => array (
472        'format' => 'default',
473        'exclude' => 0,
474      ),
475      'full' => array (
476        'format' => 'default',
477        'exclude' => 0,
478      ),
479      4 => array (
480        'format' => 'default',
481        'exclude' => 0,
482      ),
483      'inline' => array (
484        'format' => 'default',
485        'exclude' => 0,
486      ),
487      'modal' => array (
488        'format' => 'default',
489        'exclude' => 0,
490      ),
491      'token' => array (
492        'format' => 'default',
493        'exclude' => 0,
494      ),
495    ),
496  );
497   //anadiendo el campo segun su origen
498  $content['fields'][] = array (
499    'label' => 'Según su origén',
500    'type_name' => 'proyectos_operativos',
501    'field_name' => 'field_factor_segun_origen',
502    'type' => 'text',
503    'widget_type' => 'optionwidgets_select',
504    'change' => 'Change basic information',
505    'weight' => '39',
506    'description' => '',
507    'default_value' => array (
508      0 => array (
509        'value' => '0 ',
510      ),
511    ),
512    'default_value_php' => '',
513    'default_value_widget' => array (
514      'field_causa_posible' => array (
515        'value' => '0 ',
516      ),
517    ),
518    'required' => 1,
519    'multiple' => '0',
520    'text_processing' => '0',
521    'max_length' => '',
522    'allowed_values' => '0| seleccione
523    1| Aprovechamiento de recursos naturales
524    2| Contaminación
525    3| Ocupación del territorio
526    4| Multiorigen
527    5| No aplica',
528    'allowed_values_php' => '',
529    'op' => 'Guardar configuraciones del campo',
530    'module' => 'text',
531    'widget_module' => 'optionwidgets',
532    'columns' => array (
533      'value' => array (
534        'type' => 'text',
535        'size' => 'big',
536        'not null' => false,
537        'sortable' => true,
538        'views' => true,
539      ),
540    ),
541    'display_settings' => array (
542      'label' => array (
543        'format' => 'above',
544        'exclude' => 0,
545      ),
546      'teaser' => array (
547        'format' => 'default',
548        'exclude' => 0,
549      ),
550      'full' => array (
551        'format' => 'default',
552        'exclude' => 0,
553      ),
554      4 => array (
555        'format' => 'default',
556        'exclude' => 0,
557      ),
558      'modal' => array (
559        'format' => 'default',
560        'exclude' => 0,
561      ),
562      'inline' => array (
563        'format' => 'default',
564        'exclude' => 0,
565      ),
566      'token' => array (
567        'format' => 'default',
568        'exclude' => 0,
569      ),
570    ),
571  );
572  //campo cuales son esos impactos Multiorigen
573  $content['fields'][] = array (
574    'label' => 'Impacto Multiorigen',
575    'type_name' => 'proyectos_operativos',
576    'field_name' => 'field_factor_impact_multiog',
577    'type' => 'text',
578    'widget_type' => 'text_textarea',
579    'change' => 'Change basic information',
580    'weight' => '40',
581    'rows' => '5',
582    'size' => 60,
583    'description' => '',
584    'default_value' => array (
585      0 => array (
586        'value' => '',
587        '_error_element' => 'default_value_widget][field_factor_impact_multiog][0][value',
588      ),
589    ),
590    'default_value_php' => '',
591    'default_value_widget' => array (
592      'field_factor_impact_multiog' => array (
593        0 => array (
594          'value' => '',
595          '_error_element' => 'default_value_widget][field_factor_impact_multiog][0][value',
596        ),
597      ),
598    ),
599    'required' => 0,
600    'multiple' => '0',
601    'text_processing' => '0',
602    'max_length' => '',
603    'op' => 'Save field settings',
604    'module' => 'text',
605    'widget_module' => 'text',
606    'columns' => array (
607      'value' => array (
608        'type' => 'text',
609        'size' => 'big',
610        'not null' => false,
611        'sortable' => true,
612        'views' => true,
613      ),
614    ),
615    'display_settings' => array (
616      'label' => array (
617        'format' => 'above',
618        'exclude' => 0,
619      ),
620      'teaser' => array (
621        'format' => 'default',
622        'exclude' => 0,
623      ),
624      'full' => array (
625        'format' => 'default',
626        'exclude' => 0,
627      ),
628      4 => array (
629        'format' => 'default',
630        'exclude' => 0,
631      ),
632      'inline' => array (
633        'format' => 'default',
634        'exclude' => 0,
635      ),
636      'modal' => array (
637        'format' => 'default',
638        'exclude' => 0,
639      ),
640      'token' => array (
641        'format' => 'default',
642        'exclude' => 0,
643      ),
644    ),
645  );
646   //anadiendo el campo naturaleza
647   $content['fields'][] = array (
648    'label' => 'Naturaleza',
649    'type_name' => 'proyectos_operativos',
650    'field_name' => 'field_factor_naturaleza',
651    'type' => 'text',
652    'widget_type' => 'optionwidgets_select',
653    'change' => 'Change basic information',
654    'weight' => '28',
655    'description' => '',
656    'default_value' => array (
657      0 => array (
658        'value' => '0 ',
659      ),
660    ),
661    'default_value_php' => '',
662    'default_value_widget' => array (
663      'field_causa_posible' => array (
664        'value' => '0 ',
665      ),
666    ),
667    'required' => 1,
668    'multiple' => '0',
669    'text_processing' => '0',
670    'max_length' => '',
671    'allowed_values' => '0| seleccione
672    1| Beneficioso
673    2| Perfudicial
674    3| No aplica',
675    'allowed_values_php' => '',
676    'op' => 'Guardar configuraciones del campo',
677    'module' => 'text',
678    'widget_module' => 'optionwidgets',
679    'columns' => array (
680      'value' => array (
681        'type' => 'text',
682        'size' => 'big',
683        'not null' => false,
684        'sortable' => true,
685        'views' => true,
686      ),
687    ),
688    'display_settings' => array (
689      'label' => array (
690        'format' => 'above',
691        'exclude' => 0,
692      ),
693      'teaser' => array (
694        'format' => 'default',
695        'exclude' => 0,
696      ),
697      'full' => array (
698        'format' => 'default',
699        'exclude' => 0,
700      ),
701      4 => array (
702        'format' => 'default',
703        'exclude' => 0,
704      ),
705      'modal' => array (
706        'format' => 'default',
707        'exclude' => 0,
708      ),
709      'inline' => array (
710        'format' => 'default',
711        'exclude' => 0,
712      ),
713      'token' => array (
714        'format' => 'default',
715        'exclude' => 0,
716      ),
717    ),
718  );
719   //anadiendo el campo intensidad
720   $content['fields'][] = array (
721    'label' => 'Intensidad',
722    'type_name' => 'proyectos_operativos',
723    'field_name' => 'field_factor_intensidad',
724    'type' => 'text',
725    'widget_type' => 'optionwidgets_select',
726    'change' => 'Change basic information',
727    'weight' => '29',
728    'description' => '',
729    'default_value' => array (
730      0 => array (
731        'value' => '0 ',
732      ),
733    ),
734    'default_value_php' => '',
735    'default_value_widget' => array (
736      'field_causa_posible' => array (
737        'value' => '0 ',
738      ),
739    ),
740    'required' => 1,
741    'multiple' => '0',
742    'text_processing' => '0',
743    'max_length' => '',
744    'allowed_values' => '0| seleccione
745    1| Baja
746    2| Media
747    3| Alta
748    4| Muy Alta
749    5| No aplica',
750    'allowed_values_php' => '',
751    'op' => 'Guardar configuraciones del campo',
752    'module' => 'text',
753    'widget_module' => 'optionwidgets',
754    'columns' => array (
755      'value' => array (
756        'type' => 'text',
757        'size' => 'big',
758        'not null' => false,
759        'sortable' => true,
760        'views' => true,
761      ),
762    ),
763    'display_settings' => array (
764      'label' => array (
765        'format' => 'above',
766        'exclude' => 0,
767      ),
768      'teaser' => array (
769        'format' => 'default',
770        'exclude' => 0,
771      ),
772      'full' => array (
773        'format' => 'default',
774        'exclude' => 0,
775      ),
776      4 => array (
777        'format' => 'default',
778        'exclude' => 0,
779      ),
780      'modal' => array (
781        'format' => 'default',
782        'exclude' => 0,
783      ),
784      'inline' => array (
785        'format' => 'default',
786        'exclude' => 0,
787      ),
788      'token' => array (
789        'format' => 'default',
790        'exclude' => 0,
791      ),
792    ),
793  );
794   //anadiendo el campo extension
795   $content['fields'][] = array (
796    'label' => 'Extensión',
797    'type_name' => 'proyectos_operativos',
798    'field_name' => 'field_factor_extension',
799    'type' => 'text',
800    'widget_type' => 'optionwidgets_select',
801    'change' => 'Change basic information',
802    'weight' => '30',
803    'description' => '',
804    'default_value' => array (
805      0 => array (
806        'value' => '0 ',
807      ),
808    ),
809    'default_value_php' => '',
810    'default_value_widget' => array (
811      'field_causa_posible' => array (
812        'value' => '0 ',
813      ),
814    ),
815    'required' => 1,
816    'multiple' => '0',
817    'text_processing' => '0',
818    'max_length' => '',
819    'allowed_values' => '0| seleccione
820    1| Puntual
821    2| Parcial
822    3| Extenso
823    4| Total
824    5| Crítico
825    6| No aplica',
826    'allowed_values_php' => '',
827    'op' => 'Guardar configuraciones del campo',
828    'module' => 'text',
829    'widget_module' => 'optionwidgets',
830    'columns' => array (
831      'value' => array (
832        'type' => 'text',
833        'size' => 'big',
834        'not null' => false,
835        'sortable' => true,
836        'views' => true,
837      ),
838    ),
839    'display_settings' => array (
840      'label' => array (
841        'format' => 'above',
842        'exclude' => 0,
843      ),
844      'teaser' => array (
845        'format' => 'default',
846        'exclude' => 0,
847      ),
848      'full' => array (
849        'format' => 'default',
850        'exclude' => 0,
851      ),
852      4 => array (
853        'format' => 'default',
854        'exclude' => 0,
855      ),
856      'modal' => array (
857        'format' => 'default',
858        'exclude' => 0,
859      ),
860      'inline' => array (
861        'format' => 'default',
862        'exclude' => 0,
863      ),
864      'token' => array (
865        'format' => 'default',
866        'exclude' => 0,
867      ),
868    ),
869  );
870     //anadiendo el campo extension
871   $content['fields'][] = array (
872    'label' => 'Momento',
873    'type_name' => 'proyectos_operativos',
874    'field_name' => 'field_factor_momento',
875    'type' => 'text',
876    'widget_type' => 'optionwidgets_select',
877    'change' => 'Change basic information',
878    'weight' => '31',
879    'description' => '',
880    'default_value' => array (
881      0 => array (
882        'value' => '0 ',
883      ),
884    ),
885    'default_value_php' => '',
886    'default_value_widget' => array (
887      'field_factor_momento' => array (
888        'value' => '0 ',
889      ),
890    ),
891    'required' => 1,
892    'multiple' => '0',
893    'text_processing' => '0',
894    'max_length' => '',
895    'allowed_values' => '0| seleccione
896    1| Largo Plazo
897    2| Mediano Plazo
898    3| Inmediato
899    4| Crítico
900    5| No aplica',
901    'allowed_values_php' => '',
902    'op' => 'Guardar configuraciones del campo',
903    'module' => 'text',
904    'widget_module' => 'optionwidgets',
905    'columns' => array (
906      'value' => array (
907        'type' => 'text',
908        'size' => 'big',
909        'not null' => false,
910        'sortable' => true,
911        'views' => true,
912      ),
913    ),
914    'display_settings' => array (
915      'label' => array (
916        'format' => 'above',
917        'exclude' => 0,
918      ),
919      'teaser' => array (
920        'format' => 'default',
921        'exclude' => 0,
922      ),
923      'full' => array (
924        'format' => 'default',
925        'exclude' => 0,
926      ),
927      4 => array (
928        'format' => 'default',
929        'exclude' => 0,
930      ),
931      'modal' => array (
932        'format' => 'default',
933        'exclude' => 0,
934      ),
935      'inline' => array (
936        'format' => 'default',
937        'exclude' => 0,
938      ),
939      'token' => array (
940        'format' => 'default',
941        'exclude' => 0,
942      ),
943    ),
944  );
945    //anadiendo el campo persistencia
946   $content['fields'][] = array (
947    'label' => 'Persistencia',
948    'type_name' => 'proyectos_operativos',
949    'field_name' => 'field_factor_persistencia',
950    'type' => 'text',
951    'widget_type' => 'optionwidgets_select',
952    'change' => 'Change basic information',
953    'weight' => '32',
954    'description' => '',
955    'default_value' => array (
956      0 => array (
957        'value' => '0 ',
958      ),
959    ),
960    'default_value_php' => '',
961    'default_value_widget' => array (
962      'field_factor_persistencia' => array (
963        'value' => '0 ',
964      ),
965    ),
966    'required' => 1,
967    'multiple' => '0',
968    'text_processing' => '0',
969    'max_length' => '',
970    'allowed_values' => '0| seleccione
971    1| Fugaz
972    2| Temporal
973    3| Permanente
974    4| No aplica',
975    'allowed_values_php' => '',
976    'op' => 'Guardar configuraciones del campo',
977    'module' => 'text',
978    'widget_module' => 'optionwidgets',
979    'columns' => array (
980      'value' => array (
981        'type' => 'text',
982        'size' => 'big',
983        'not null' => false,
984        'sortable' => true,
985        'views' => true,
986      ),
987    ),
988    'display_settings' => array (
989      'label' => array (
990        'format' => 'above',
991        'exclude' => 0,
992      ),
993      'teaser' => array (
994        'format' => 'default',
995        'exclude' => 0,
996      ),
997      'full' => array (
998        'format' => 'default',
999        'exclude' => 0,
1000      ),
1001      4 => array (
1002        'format' => 'default',
1003        'exclude' => 0,
1004      ),
1005      'modal' => array (
1006        'format' => 'default',
1007        'exclude' => 0,
1008      ),
1009      'inline' => array (
1010        'format' => 'default',
1011        'exclude' => 0,
1012      ),
1013      'token' => array (
1014        'format' => 'default',
1015        'exclude' => 0,
1016      ),
1017    ),
1018  );
1019  //anadiendo el campo reversibilidad
1020   $content['fields'][] = array (
1021    'label' => 'Reversibilidad',
1022    'type_name' => 'proyectos_operativos',
1023    'field_name' => 'field_factor_reversibilidad',
1024    'type' => 'text',
1025    'widget_type' => 'optionwidgets_select',
1026    'change' => 'Change basic information',
1027    'weight' => '33',
1028    'description' => '',
1029    'default_value' => array (
1030      0 => array (
1031        'value' => '0 ',
1032      ),
1033    ),
1034    'default_value_php' => '',
1035    'default_value_widget' => array (
1036      'field_factor_reversibilidad' => array (
1037        'value' => '0 ',
1038      ),
1039    ),
1040    'required' => 1,
1041    'multiple' => '0',
1042    'text_processing' => '0',
1043    'max_length' => '',
1044    'allowed_values' => '0| seleccione
1045    1| Corto Plazo
1046    2| Mediano Plazo
1047    3| Irreversible
1048    4| No aplica',
1049    'allowed_values_php' => '',
1050    'op' => 'Guardar configuraciones del campo',
1051    'module' => 'text',
1052    'widget_module' => 'optionwidgets',
1053    'columns' => array (
1054      'value' => array (
1055        'type' => 'text',
1056        'size' => 'big',
1057        'not null' => false,
1058        'sortable' => true,
1059        'views' => true,
1060      ),
1061    ),
1062    'display_settings' => array (
1063      'label' => array (
1064        'format' => 'above',
1065        'exclude' => 0,
1066      ),
1067      'teaser' => array (
1068        'format' => 'default',
1069        'exclude' => 0,
1070      ),
1071      'full' => array (
1072        'format' => 'default',
1073        'exclude' => 0,
1074      ),
1075      4 => array (
1076        'format' => 'default',
1077        'exclude' => 0,
1078      ),
1079      'modal' => array (
1080        'format' => 'default',
1081        'exclude' => 0,
1082      ),
1083      'inline' => array (
1084        'format' => 'default',
1085        'exclude' => 0,
1086      ),
1087      'token' => array (
1088        'format' => 'default',
1089        'exclude' => 0,
1090      ),
1091    ),
1092  );
1093  //anadiendo el campo sinergismo
1094   $content['fields'][] = array (
1095    'label' => 'Sinergismo',
1096    'type_name' => 'proyectos_operativos',
1097    'field_name' => 'field_factor_sinergismo',
1098    'type' => 'text',
1099    'widget_type' => 'optionwidgets_select',
1100    'change' => 'Change basic information',
1101    'weight' => '34',
1102    'description' => '',
1103    'default_value' => array (
1104      0 => array (
1105        'value' => '0 ',
1106      ),
1107    ),
1108    'default_value_php' => '',
1109    'default_value_widget' => array (
1110      'field_factor_sinergismo' => array (
1111        'value' => '0 ',
1112      ),
1113    ),
1114    'required' => 1,
1115    'multiple' => '0',
1116    'text_processing' => '0',
1117    'max_length' => '',
1118    'allowed_values' => '0| seleccione
1119    1| Sin sinergismo
1120    2| Sinérgico
1121    3| Muy Sinérgico
1122    4| No aplica',
1123    'allowed_values_php' => '',
1124    'op' => 'Guardar configuraciones del campo',
1125    'module' => 'text',
1126    'widget_module' => 'optionwidgets',
1127    'columns' => array (
1128      'value' => array (
1129        'type' => 'text',
1130        'size' => 'big',
1131        'not null' => false,
1132        'sortable' => true,
1133        'views' => true,
1134      ),
1135    ),
1136    'display_settings' => array (
1137      'label' => array (
1138        'format' => 'above',
1139        'exclude' => 0,
1140      ),
1141      'teaser' => array (
1142        'format' => 'default',
1143        'exclude' => 0,
1144      ),
1145      'full' => array (
1146        'format' => 'default',
1147        'exclude' => 0,
1148      ),
1149      4 => array (
1150        'format' => 'default',
1151        'exclude' => 0,
1152      ),
1153      'modal' => array (
1154        'format' => 'default',
1155        'exclude' => 0,
1156      ),
1157      'inline' => array (
1158        'format' => 'default',
1159        'exclude' => 0,
1160      ),
1161      'token' => array (
1162        'format' => 'default',
1163        'exclude' => 0,
1164      ),
1165    ),
1166  );
1167   //anadiendo el campo acumulación
1168   $content['fields'][] = array (
1169    'label' => 'Acumulación',
1170    'type_name' => 'proyectos_operativos',
1171    'field_name' => 'field_factor_acumulacion',
1172    'type' => 'text',
1173    'widget_type' => 'optionwidgets_select',
1174    'change' => 'Change basic information',
1175    'weight' => '35',
1176    'description' => '',
1177    'default_value' => array (
1178      0 => array (
1179        'value' => '0 ',
1180      ),
1181    ),
1182    'default_value_php' => '',
1183    'default_value_widget' => array (
1184      'field_factor_acumulacion' => array (
1185        'value' => '0 ',
1186      ),
1187    ),
1188    'required' => 1,
1189    'multiple' => '0',
1190    'text_processing' => '0',
1191    'max_length' => '',
1192    'allowed_values' => '0| seleccione
1193    1| Simple
1194    2| Acumulativo
1195    3| No aplica',
1196    'allowed_values_php' => '',
1197    'op' => 'Guardar configuraciones del campo',
1198    'module' => 'text',
1199    'widget_module' => 'optionwidgets',
1200    'columns' => array (
1201      'value' => array (
1202        'type' => 'text',
1203        'size' => 'big',
1204        'not null' => false,
1205        'sortable' => true,
1206        'views' => true,
1207      ),
1208    ),
1209    'display_settings' => array (
1210      'label' => array (
1211        'format' => 'above',
1212        'exclude' => 0,
1213      ),
1214      'teaser' => array (
1215        'format' => 'default',
1216        'exclude' => 0,
1217      ),
1218      'full' => array (
1219        'format' => 'default',
1220        'exclude' => 0,
1221      ),
1222      4 => array (
1223        'format' => 'default',
1224        'exclude' => 0,
1225      ),
1226      'modal' => array (
1227        'format' => 'default',
1228        'exclude' => 0,
1229      ),
1230      'inline' => array (
1231        'format' => 'default',
1232        'exclude' => 0,
1233      ),
1234      'token' => array (
1235        'format' => 'default',
1236        'exclude' => 0,
1237      ),
1238    ),
1239  );
1240   //anadiendo el campo relacion causa-efecto
1241   $content['fields'][] = array (
1242    'label' => 'Relación causa-efecto',
1243    'type_name' => 'proyectos_operativos',
1244    'field_name' => 'field_factor_relacion',
1245    'type' => 'text',
1246    'widget_type' => 'optionwidgets_select',
1247    'change' => 'Change basic information',
1248    'weight' => '36',
1249    'description' => '',
1250    'default_value' => array (
1251      0 => array (
1252        'value' => '0 ',
1253      ),
1254    ),
1255    'default_value_php' => '',
1256    'default_value_widget' => array (
1257      'field_factor_relacion' => array (
1258        'value' => '0 ',
1259      ),
1260    ),
1261    'required' => 1,
1262    'multiple' => '0',
1263    'text_processing' => '0',
1264    'max_length' => '',
1265    'allowed_values' => '0| seleccione
1266    1| Indirecto
1267    2| Directo
1268    3| No aplica',
1269    'allowed_values_php' => '',
1270    'op' => 'Guardar configuraciones del campo',
1271    'module' => 'text',
1272    'widget_module' => 'optionwidgets',
1273    'columns' => array (
1274      'value' => array (
1275        'type' => 'text',
1276        'size' => 'big',
1277        'not null' => false,
1278        'sortable' => true,
1279        'views' => true,
1280      ),
1281    ),
1282    'display_settings' => array (
1283      'label' => array (
1284        'format' => 'above',
1285        'exclude' => 0,
1286      ),
1287      'teaser' => array (
1288        'format' => 'default',
1289        'exclude' => 0,
1290      ),
1291      'full' => array (
1292        'format' => 'default',
1293        'exclude' => 0,
1294      ),
1295      4 => array (
1296        'format' => 'default',
1297        'exclude' => 0,
1298      ),
1299      'modal' => array (
1300        'format' => 'default',
1301        'exclude' => 0,
1302      ),
1303      'inline' => array (
1304        'format' => 'default',
1305        'exclude' => 0,
1306      ),
1307      'token' => array (
1308        'format' => 'default',
1309        'exclude' => 0,
1310      ),
1311    ),
1312  );
1313  //anadiendo el programacion anual por productor
1314  $content['fields'][] = array (
1315    'label' => 'Tipo de Instalación',
1316    'type_name' => 'proyectos_operativos',
1317    'field_name' => 'field_balnc_progrmn_anu',
1318    'type' => 'text',
1319    'widget_type' => 'optionwidgets_select',
1320    'change' => 'Change basic information',
1321    'weight' => '28',
1322    'description' => '',
1323    'default_value' => array (
1324      0 => array (
1325        'value' => '0 ',
1326      ),
1327    ),
1328    'default_value_php' => '',
1329    'default_value_widget' => array (
1330      'field_balnc_progrmn_anu' => array (
1331        'value' => '0 ',
1332      ),
1333    ),
1334    'required' => 0,
1335    'multiple' => 1,
1336    'text_processing' => '0',
1337    'max_length' => '',
1338    'allowed_values' => '0| seleccione
1339    1| Refinería de petróleo
1340    2| Plata de gas
1341    3| Centrales hidroeléctricas
1342    4| Centrales termoeléctricas
1343    5| Residencial
1344    6| Comercial
1345    7| Transporte
1346    8| Industria
1347    9| Otros
1348    10| No aplica',
1349    'allowed_values_php' => '',
1350    'op' => 'Guardar configuraciones del campo',
1351    'module' => 'text',
1352    'widget_module' => 'optionwidgets',
1353    'columns' => array (
1354      'value' => array (
1355        'type' => 'text',
1356        'size' => 'big',
1357        'not null' => false,
1358        'sortable' => true,
1359        'views' => true,
1360      ),
1361    ),
1362    'display_settings' => array (
1363      'label' => array (
1364        'format' => 'above',
1365        'exclude' => 0,
1366      ),
1367      'teaser' => array (
1368        'format' => 'default',
1369        'exclude' => 0,
1370      ),
1371      'full' => array (
1372        'format' => 'default',
1373        'exclude' => 0,
1374      ),
1375      4 => array (
1376        'format' => 'default',
1377        'exclude' => 0,
1378      ),
1379      'modal' => array (
1380        'format' => 'default',
1381        'exclude' => 0,
1382      ),
1383      'inline' => array (
1384        'format' => 'default',
1385        'exclude' => 0,
1386      ),
1387      'token' => array (
1388        'format' => 'default',
1389        'exclude' => 0,
1390      ),
1391    ),
1392  );
1393  //anadiendo el programacion anual por productor
1394   $content['fields'][] = array (
1395    'label' => 'Fuente',
1396    'type_name' => 'proyectos_operativos',
1397    'field_name' => 'field_balance_fuente',
1398    'type' => 'text',
1399    'widget_type' => 'optionwidgets_select',
1400    'change' => 'Change basic information',
1401    'weight' => '29',
1402    'description' => '',
1403    'default_value' => array (
1404      0 => array (
1405        'value' => '0 ',
1406      ),
1407    ),
1408    'default_value_php' => '',
1409    'default_value_widget' => array (
1410      'field_balance_fuente' => array (
1411        'value' => '0 ',
1412      ),
1413    ),
1414    'required' => 0,
1415    'multiple' => 1,
1416    'text_processing' => '0',
1417    'max_length' => '',
1418    'allowed_values' => '0| seleccione
1419    1| Energía primaria
1420    2| Energía secundaria',
1421    'allowed_values_php' => '',
1422    'op' => 'Guardar configuraciones del campo',
1423    'module' => 'text',
1424    'widget_module' => 'optionwidgets',
1425    'columns' => array (
1426      'value' => array (
1427        'type' => 'text',
1428        'size' => 'big',
1429        'not null' => false,
1430        'sortable' => true,
1431        'views' => true,
1432      ),
1433    ),
1434    'display_settings' => array (
1435      'label' => array (
1436        'format' => 'above',
1437        'exclude' => 0,
1438      ),
1439      'teaser' => array (
1440        'format' => 'default',
1441        'exclude' => 0,
1442      ),
1443      'full' => array (
1444        'format' => 'default',
1445        'exclude' => 0,
1446      ),
1447      4 => array (
1448        'format' => 'default',
1449        'exclude' => 0,
1450      ),
1451      'modal' => array (
1452        'format' => 'default',
1453        'exclude' => 0,
1454      ),
1455      'inline' => array (
1456        'format' => 'default',
1457        'exclude' => 0,
1458      ),
1459      'token' => array (
1460        'format' => 'default',
1461        'exclude' => 0,
1462      ),
1463    ),
1464  );
1465  //anadiendo el campo tipo de fuente
1466   $content['fields'][] = array (
1467    'label' => 'Tipo de Fuente',
1468    'type_name' => 'proyectos_operativos',
1469    'field_name' => 'field_balanc_tipofuent',
1470    'type' => 'text',
1471    'widget_type' => 'optionwidgets_select',
1472    'change' => 'Change basic information',
1473    'weight' => '30',
1474    'description' => '',
1475    'default_value' => array (
1476      0 => array (
1477        'value' => '0 ',
1478      ),
1479    ),
1480    'default_value_php' => '',
1481    'default_value_widget' => array (
1482      'field_balanc_tipofuent' => array (
1483        'value' => '0 ',
1484      ),
1485    ),
1486    'required' => 0,
1487    'multiple' => 1,
1488    'text_processing' => '0',
1489    'max_length' => '',
1490    'allowed_values' => '0| seleccione
1491    1| Petróleo
1492    2| Hidro energía
1493    3| Gas Natural
1494    4| Carbono
1495    5| Biomasa
1496    6| Energía solar
1497    7| Energía nuclear
1498    8| Energía del viento
1499    9| Leña',
1500    'allowed_values_php' => '',
1501    'op' => 'Guardar configuraciones del campo',
1502    'module' => 'text',
1503    'widget_module' => 'optionwidgets',
1504    'columns' => array (
1505      'value' => array (
1506        'type' => 'text',
1507        'size' => 'big',
1508        'not null' => false,
1509        'sortable' => true,
1510        'views' => true,
1511      ),
1512    ),
1513    'display_settings' => array (
1514      'label' => array (
1515        'format' => 'above',
1516        'exclude' => 0,
1517      ),
1518      'teaser' => array (
1519        'format' => 'default',
1520        'exclude' => 0,
1521      ),
1522      'full' => array (
1523        'format' => 'default',
1524        'exclude' => 0,
1525      ),
1526      4 => array (
1527        'format' => 'default',
1528        'exclude' => 0,
1529      ),
1530      'modal' => array (
1531        'format' => 'default',
1532        'exclude' => 0,
1533      ),
1534      'inline' => array (
1535        'format' => 'default',
1536        'exclude' => 0,
1537      ),
1538      'token' => array (
1539        'format' => 'default',
1540        'exclude' => 0,
1541      ),
1542    ),
1543  );
1544  //anadiendo el camo tipo de producto
1545  $content['fields'][] = array (
1546    'label' => 'Tipo de Producto',
1547    'type_name' => 'proyectos_operativos',
1548    'field_name' => 'field_balanc_tipoProd',
1549    'type' => 'text',
1550    'widget_type' => 'optionwidgets_select',
1551    'change' => 'Change basic information',
1552    'weight' => '31',
1553    'description' => '',
1554    'default_value' => array (
1555      0 => array (
1556        'value' => '0 ',
1557      ),
1558    ),
1559    'default_value_php' => '',
1560    'default_value_widget' => array (
1561      'field_balanc_tipoProd' => array (
1562        'value' => '0 ',
1563      ),
1564    ),
1565    'required' => 0,
1566    'multiple' => 1,
1567    'text_processing' => '0',
1568    'max_length' => '',
1569    'allowed_values' => '0| seleccione
1570    1| Petróleo
1571    2| Hidro energía
1572    3| Gas Natural
1573    4| Carbono
1574    5| Biomasa
1575    6| Energía solar
1576    7| Energía nuclear
1577    8| Energía del viento
1578    9| Leña',
1579    'allowed_values_php' => '',
1580    'op' => 'Guardar configuraciones del campo',
1581    'module' => 'text',
1582    'widget_module' => 'optionwidgets',
1583    'columns' => array (
1584      'value' => array (
1585        'type' => 'text',
1586        'size' => 'big',
1587        'not null' => false,
1588        'sortable' => true,
1589        'views' => true,
1590      ),
1591    ),
1592    'display_settings' => array (
1593      'label' => array (
1594        'format' => 'above',
1595        'exclude' => 0,
1596      ),
1597      'teaser' => array (
1598        'format' => 'default',
1599        'exclude' => 0,
1600      ),
1601      'full' => array (
1602        'format' => 'default',
1603        'exclude' => 0,
1604      ),
1605      4 => array (
1606        'format' => 'default',
1607        'exclude' => 0,
1608      ),
1609      'modal' => array (
1610        'format' => 'default',
1611        'exclude' => 0,
1612      ),
1613      'inline' => array (
1614        'format' => 'default',
1615        'exclude' => 0,
1616      ),
1617      'token' => array (
1618        'format' => 'default',
1619        'exclude' => 0,
1620      ),
1621    ),
1622  );
1623  //anadiendo el camo unidad de medida
1624  $content['fields'][] = array (
1625    'label' => 'Unidad de Medida',
1626    'type_name' => 'proyectos_operativos',
1627    'field_name' => 'field_balanc_unidMed',
1628    'type' => 'text',
1629    'widget_type' => 'optionwidgets_select',
1630    'change' => 'Change basic information',
1631    'weight' => '31',
1632    'description' => '',
1633    'default_value' => array (
1634      0 => array (
1635        'value' => '0 ',
1636      ),
1637    ),
1638    'default_value_php' => '',
1639    'default_value_widget' => array (
1640      'field_balanc_unidMed' => array (
1641        'value' => '0 ',
1642      ),
1643    ),
1644    'required' => 0,
1645    'multiple' => 1,
1646    'text_processing' => '0',
1647    'max_length' => '',
1648    'allowed_values' => '0| seleccione
1649    1| Coulimbio
1650    2| Julio
1651    3| Vatio
1652    4| Faradio
1653    5| Henrio
1654    6| Ohmio
1655    7| Voltio
1656    8| Hertz',
1657    'allowed_values_php' => '',
1658    'op' => 'Guardar configuraciones del campo',
1659    'module' => 'text',
1660    'widget_module' => 'optionwidgets',
1661    'columns' => array (
1662      'value' => array (
1663        'type' => 'text',
1664        'size' => 'big',
1665        'not null' => false,
1666        'sortable' => true,
1667        'views' => true,
1668      ),
1669    ),
1670    'display_settings' => array (
1671      'label' => array (
1672        'format' => 'above',
1673        'exclude' => 0,
1674      ),
1675      'teaser' => array (
1676        'format' => 'default',
1677        'exclude' => 0,
1678      ),
1679      'full' => array (
1680        'format' => 'default',
1681        'exclude' => 0,
1682      ),
1683      4 => array (
1684        'format' => 'default',
1685        'exclude' => 0,
1686      ),
1687      'modal' => array (
1688        'format' => 'default',
1689        'exclude' => 0,
1690      ),
1691      'inline' => array (
1692        'format' => 'default',
1693        'exclude' => 0,
1694      ),
1695      'token' => array (
1696        'format' => 'default',
1697        'exclude' => 0,
1698      ),
1699    ),
1700  );
1701  $content['fields'][] = array (
1702    'label' => 'Capacidad',
1703    'type_name' => 'proyectos_operativos',
1704    'field_name' => 'field_balanc_capacid',
1705    'type' => 'text',
1706    'widget_type' => 'text_textfield',
1707    'change' => 'Change basic information',
1708    'weight' => '32',
1709    'rows' => 5,
1710    'size' => '20',
1711    'description' => '',
1712    'default_value' => array (
1713      0 => array (
1714        'value' => '',
1715        '_error_element' => 'default_value_widget][field_balanc_capacid][0][value',
1716      ),
1717    ),
1718    'default_value_php' => '',
1719    'default_value_widget' => NULL,
1720    'required' => 0,
1721    'multiple' => 1,
1722    'text_processing' => '0',
1723    'max_length' => '20',
1724    'op' => 'Save field settings',
1725    'module' => 'text',
1726    'widget_module' => 'text',
1727    'columns' => array (
1728      'value' => array (
1729        'type' => 'varchar',
1730        'length' => '20',
1731        'not null' => false,
1732        'sortable' => true,
1733        'views' => true,
1734      ),
1735    ),
1736    'display_settings' => array (
1737      'label' => array (
1738        'format' => 'above',
1739        'exclude' => 0,
1740      ),
1741      'teaser' => array (
1742        'format' => 'default',
1743        'exclude' => 0,
1744      ),
1745      'full' => array (
1746        'format' => 'default',
1747        'exclude' => 0,
1748      ),
1749      4 => array (
1750        'format' => 'default',
1751        'exclude' => 0,
1752      ),
1753      'inline' => array (
1754        'format' => 'default',
1755        'exclude' => 0,
1756      ),
1757      'modal' => array (
1758        'format' => 'default',
1759        'exclude' => 0,
1760      ),
1761      'token' => array (
1762        'format' => 'default',
1763        'exclude' => 0,
1764      ),
1765    ),
1766  );
1767  $content['fields'][] = array (
1768    'label' => 'Año',
1769    'type_name' => 'proyectos_operativos',
1770    'field_name' => 'field_balanc_anho',
1771    'type' => 'date',
1772    'change' => 'Change basic information',
1773    'weight' => '35',
1774    'widget_active' => 1,
1775    'type' => 'date',
1776    'required' => 0,
1777    'multiple' => 0,
1778    'db_storage' => 1,
1779    'module' => 'date',
1780    'active' => 1,
1781    'locked' => 0,
1782    'columns' => array(
1783      'value' => array(
1784        'type' => 'varchar',
1785        'length' => 20,
1786        'not null' => '',
1787        'sortable' => 1,
1788        'views' => 1,
1789      ),
1790    ),
1791    'granularity' => array(
1792      'year' => 'year',
1793    ),
1794    'timezone_db' => '',
1795    'tz_handling' => 'none',
1796    'todate' => '',
1797    'repeat' => 0,
1798    'repeat_collapsed' => '',
1799    'default_format' => 'medium',
1800    'widget' => array(
1801      'default_value' => 'now',
1802      'default_value_code' => '',
1803      'default_value2' => 'same',
1804      'default_value_code2' => '',
1805      'input_format' => 'm/d/Y - H:i:s',
1806      'input_format_custom' => '',
1807      'increment' => 1,
1808      'text_parts' => array(),
1809      'year_range' => '-10:+10',
1810      'label_position' => 'above',
1811      'label' => 'Año',
1812      'weight' => 60,
1813      'description' => '',
1814      'type' => 'date_select',
1815      'module' => 'date',
1816    ),
1817    'display_settings' => array (
1818      'label' => array (
1819        'format' => 'above',
1820        'exclude' => 0,
1821      ),
1822      'teaser' => array (
1823        'format' => 'default',
1824        'exclude' => 0,
1825      ),
1826      'full' => array (
1827        'format' => 'default',
1828        'exclude' => 0,
1829      ),
1830      4 => array (
1831        'format' => 'default',
1832        'exclude' => 0,
1833      ),
1834      'inline' => array (
1835        'format' => 'default',
1836        'exclude' => 0,
1837      ),
1838      'modal' => array (
1839        'format' => 'default',
1840        'exclude' => 0,
1841      ),
1842      'token' => array (
1843        'format' => 'default',
1844        'exclude' => 0,
1845      ),
1846    ),
1847  );
1848  //anadiendo el campo recuperabilidad
1849  $content['fields'][] = array (
1850    'label' => 'Recuperabilidad',
1851    'type_name' => 'proyectos_operativos',
1852    'field_name' => 'field_factor_recuperabilidad',
1853    'type' => 'text',
1854    'widget_type' => 'optionwidgets_select',
1855    'change' => 'Change basic information',
1856    'weight' => '37',
1857    'description' => '',
1858    'default_value' => array (
1859      0 => array (
1860        'value' => '0 ',
1861      ),
1862    ),
1863    'default_value_php' => '',
1864    'default_value_widget' => array (
1865      'field_factor_recuperabilidad' => array (
1866        'value' => '0 ',
1867      ),
1868    ),
1869    'required' => 1,
1870    'multiple' => '0',
1871    'text_processing' => '0',
1872    'max_length' => '',
1873    'allowed_values' => '0| seleccione
1874    1| Inmediata
1875    2| Mediano Plazo
1876    3| Mitigable
1877    4| Irrecuperable
1878    5| No aplica',
1879    'allowed_values_php' => '',
1880    'op' => 'Guardar configuraciones del campo',
1881    'module' => 'text',
1882    'widget_module' => 'optionwidgets',
1883    'columns' => array (
1884      'value' => array (
1885        'type' => 'text',
1886        'size' => 'big',
1887        'not null' => false,
1888        'sortable' => true,
1889        'views' => true,
1890      ),
1891    ),
1892    'display_settings' => array (
1893      'label' => array (
1894        'format' => 'above',
1895        'exclude' => 0,
1896      ),
1897      'teaser' => array (
1898        'format' => 'default',
1899        'exclude' => 0,
1900      ),
1901      'full' => array (
1902        'format' => 'default',
1903        'exclude' => 0,
1904      ),
1905      4 => array (
1906        'format' => 'default',
1907        'exclude' => 0,
1908      ),
1909      'modal' => array (
1910        'format' => 'default',
1911        'exclude' => 0,
1912      ),
1913      'inline' => array (
1914        'format' => 'default',
1915        'exclude' => 0,
1916      ),
1917      'token' => array (
1918        'format' => 'default',
1919        'exclude' => 0,
1920      ),
1921    ),
1922  );
1923  //anadiendo el campo importancia
1924  $content['fields'][] = array (
1925    'label' => 'Importancia',
1926    'type_name' => 'proyectos_operativos',
1927    'field_name' => 'field_factor_importancia',
1928    'type' => 'text',
1929    'widget_type' => 'optionwidgets_select',
1930    'change' => 'Change basic information',
1931    'weight' => '38',
1932    'description' => '',
1933    'default_value' => array (
1934      0 => array (
1935        'value' => '0 ',
1936      ),
1937    ),
1938    'default_value_php' => '',
1939    'default_value_widget' => array (
1940      'field_factor_importancia' => array (
1941        'value' => '0 ',
1942      ),
1943    ),
1944    'required' => 1,
1945    'multiple' => '0',
1946    'text_processing' => '0',
1947    'max_length' => '',
1948    'allowed_values' => '0| seleccione
1949    1| Irrelevante
1950    2| Moderado
1951    3| Severo
1952    4| Crítico
1953    5| No aplica',
1954    'allowed_values_php' => '',
1955    'op' => 'Guardar configuraciones del campo',
1956    'module' => 'text',
1957    'widget_module' => 'optionwidgets',
1958    'columns' => array (
1959      'value' => array (
1960        'type' => 'text',
1961        'size' => 'big',
1962        'not null' => false,
1963        'sortable' => true,
1964        'views' => true,
1965      ),
1966    ),
1967    'display_settings' => array (
1968      'label' => array (
1969        'format' => 'above',
1970        'exclude' => 0,
1971      ),
1972      'teaser' => array (
1973        'format' => 'default',
1974        'exclude' => 0,
1975      ),
1976      'full' => array (
1977        'format' => 'default',
1978        'exclude' => 0,
1979      ),
1980      4 => array (
1981        'format' => 'default',
1982        'exclude' => 0,
1983      ),
1984      'modal' => array (
1985        'format' => 'default',
1986        'exclude' => 0,
1987      ),
1988      'inline' => array (
1989        'format' => 'default',
1990        'exclude' => 0,
1991      ),
1992      'token' => array (
1993        'format' => 'default',
1994        'exclude' => 0,
1995      ),
1996    ),
1997  );
1998  //campo medidas para mitigar o eliminar los impactos ambientales de este proyecto
1999  $content['fields'][] = array (
2000    'label' => '¿Cuales serán las medidas para mitigar o eliminar los impactos ambientales de este proyecto?',
2001    'type_name' => 'proyectos_operativos',
2002    'field_name' => 'field_factor_medids_impact',
2003    'type' => 'text',
2004    'widget_type' => 'text_textarea',
2005    'change' => 'Change basic information',
2006    'weight' => '39',
2007    'rows' => '5',
2008    'size' => 60,
2009    'description' => '',
2010    'default_value' => array (
2011      0 => array (
2012        'value' => '',
2013        '_error_element' => 'default_value_widget][field_factor_medids_impact][0][value',
2014      ),
2015    ),
2016    'default_value_php' => '',
2017    'default_value_widget' => array (
2018      'field_factor_medids_impact' => array (
2019        0 => array (
2020          'value' => '',
2021          '_error_element' => 'default_value_widget][field_factor_medids_impact][0][value',
2022        ),
2023      ),
2024    ),
2025    'required' => 0,
2026    'multiple' => '0',
2027    'text_processing' => '0',
2028    'max_length' => '',
2029    'op' => 'Save field settings',
2030    'module' => 'text',
2031    'widget_module' => 'text',
2032    'columns' => array (
2033      'value' => array (
2034        'type' => 'text',
2035        'size' => 'big',
2036        'not null' => false,
2037        'sortable' => true,
2038        'views' => true,
2039      ),
2040    ),
2041    'display_settings' => array (
2042      'label' => array (
2043        'format' => 'above',
2044        'exclude' => 0,
2045      ),
2046      'teaser' => array (
2047        'format' => 'default',
2048        'exclude' => 0,
2049      ),
2050      'full' => array (
2051        'format' => 'default',
2052        'exclude' => 0,
2053      ),
2054      4 => array (
2055        'format' => 'default',
2056        'exclude' => 0,
2057      ),
2058      'inline' => array (
2059        'format' => 'default',
2060        'exclude' => 0,
2061      ),
2062      'modal' => array (
2063        'format' => 'default',
2064        'exclude' => 0,
2065      ),
2066      'token' => array (
2067        'format' => 'default',
2068        'exclude' => 0,
2069      ),
2070    ),
2071  );
2072  //Programacion anual por consumidor
2073  $content['fields'][] = array (
2074    'label' => 'Año',
2075    'type_name' => 'proyectos_operativos',
2076    'field_name' => 'field_progrmcn_anual_anho',
2077        'type' => 'date',
2078    'change' => 'Change basic information',
2079    'weight' => '35',
2080    'widget_active' => 1,
2081    'type' => 'date',
2082    'required' => 0,
2083    'multiple' => 0,
2084    'db_storage' => 1,
2085    'module' => 'date',
2086    'active' => 1,
2087    'locked' => 0,
2088    'columns' => array(
2089      'value' => array(
2090        'type' => 'varchar',
2091        'length' => 20,
2092        'not null' => '',
2093        'sortable' => 1,
2094        'views' => 1,
2095      ),
2096    ),
2097    'granularity' => array(
2098      'year' => 'year',
2099    ),
2100    'timezone_db' => '',
2101    'tz_handling' => 'none',
2102    'todate' => '',
2103    'repeat' => 0,
2104    'repeat_collapsed' => '',
2105    'default_format' => 'medium',
2106    'widget' => array(
2107      'default_value' => 'now',
2108      'default_value_code' => '',
2109      'default_value2' => 'same',
2110      'default_value_code2' => '',
2111      'input_format' => 'm/d/Y - H:i:s',
2112      'input_format_custom' => '',
2113      'increment' => 1,
2114      'text_parts' => array(),
2115      'year_range' => '-10:+10',
2116      'label_position' => 'above',
2117      'label' => 'Año',
2118      'weight' => 60,
2119      'description' => '',
2120      'type' => 'date_select',
2121      'module' => 'date',
2122    ),
2123    'display_settings' => array (
2124      'label' => array (
2125        'format' => 'above',
2126        'exclude' => 0,
2127      ),
2128      'teaser' => array (
2129        'format' => 'default',
2130        'exclude' => 0,
2131      ),
2132      'full' => array (
2133        'format' => 'default',
2134        'exclude' => 0,
2135      ),
2136      4 => array (
2137        'format' => 'default',
2138        'exclude' => 0,
2139      ),
2140      'inline' => array (
2141        'format' => 'default',
2142        'exclude' => 0,
2143      ),
2144      'modal' => array (
2145        'format' => 'default',
2146        'exclude' => 0,
2147      ),
2148      'token' => array (
2149        'format' => 'default',
2150        'exclude' => 0,
2151      ),
2152    ),
2153  );
2154  $content['fields'][] = array (
2155    'label' => 'Capacidad',
2156    'type_name' => 'proyectos_operativos',
2157    'field_name' => 'field_progrmcn_anual_cap',
2158    'type' => 'text',
2159    'widget_type' => 'text_textfield',
2160    'change' => 'Change basic information',
2161    'weight' => '34',
2162    'rows' => 5,
2163    'size' => '20',
2164    'description' => '',
2165    'default_value' => array (
2166      0 => array (
2167        'value' => '',
2168        '_error_element' => 'default_value_widget][field_progrmcn_anual_cap][0][value',
2169      ),
2170    ),
2171    'default_value_php' => '',
2172    'default_value_widget' => NULL,
2173    'required' => 0,
2174    'multiple' => 1,
2175    'text_processing' => '0',
2176    'max_length' => '20',
2177    'op' => 'Save field settings',
2178    'module' => 'text',
2179    'widget_module' => 'text',
2180    'columns' => array (
2181      'value' => array (
2182        'type' => 'varchar',
2183        'length' => '20',
2184        'not null' => false,
2185        'sortable' => true,
2186        'views' => true,
2187      ),
2188    ),
2189    'display_settings' => array (
2190      'label' => array (
2191        'format' => 'above',
2192        'exclude' => 0,
2193      ),
2194      'teaser' => array (
2195        'format' => 'default',
2196        'exclude' => 0,
2197      ),
2198      'full' => array (
2199        'format' => 'default',
2200        'exclude' => 0,
2201      ),
2202      4 => array (
2203        'format' => 'default',
2204        'exclude' => 0,
2205      ),
2206      'inline' => array (
2207        'format' => 'default',
2208        'exclude' => 0,
2209      ),
2210      'modal' => array (
2211        'format' => 'default',
2212        'exclude' => 0,
2213      ),
2214      'token' => array (
2215        'format' => 'default',
2216        'exclude' => 0,
2217      ),
2218    ),
2219  );
2220  //anadiendo el camo unidad de medida
2221  $content['fields'][] = array (
2222    'label' => 'Unidad de Medida',
2223    'type_name' => 'proyectos_operativos',
2224    'field_name' => 'field_progrmcn_anual_unid',
2225    'type' => 'text',
2226    'widget_type' => 'optionwidgets_select',
2227    'change' => 'Change basic information',
2228    'weight' => '33',
2229    'description' => '',
2230    'default_value' => array (
2231      0 => array (
2232        'value' => '0 ',
2233      ),
2234    ),
2235    'default_value_php' => '',
2236    'default_value_widget' => array (
2237      'field_progrmcn_anual_unid' => array (
2238        'value' => '0 ',
2239      ),
2240    ),
2241    'required' => 0,
2242    'multiple' => 1,
2243    'text_processing' => '0',
2244    'max_length' => '',
2245    'allowed_values' => '0| seleccione
2246    1| Coulimbio
2247    2| Julio
2248    3| Vatio
2249    4| Faradio
2250    5| Henrio
2251    6| Ohmio
2252    7| Voltio
2253    8| Hertz',
2254    'allowed_values_php' => '',
2255    'op' => 'Guardar configuraciones del campo',
2256    'module' => 'text',
2257    'widget_module' => 'optionwidgets',
2258    'columns' => array (
2259      'value' => array (
2260        'type' => 'text',
2261        'size' => 'big',
2262        'not null' => false,
2263        'sortable' => true,
2264        'views' => true,
2265      ),
2266    ),
2267    'display_settings' => array (
2268      'label' => array (
2269        'format' => 'above',
2270        'exclude' => 0,
2271      ),
2272      'teaser' => array (
2273        'format' => 'default',
2274        'exclude' => 0,
2275      ),
2276      'full' => array (
2277        'format' => 'default',
2278        'exclude' => 0,
2279      ),
2280      4 => array (
2281        'format' => 'default',
2282        'exclude' => 0,
2283      ),
2284      'modal' => array (
2285        'format' => 'default',
2286        'exclude' => 0,
2287      ),
2288      'inline' => array (
2289        'format' => 'default',
2290        'exclude' => 0,
2291      ),
2292      'token' => array (
2293        'format' => 'default',
2294        'exclude' => 0,
2295      ),
2296    ),
2297  );
2298  //anadiendo el programacion anual por productor
2299  $content['fields'][] = array (
2300    'label' => 'Tipo de Instalación',
2301    'type_name' => 'proyectos_operativos',
2302    'field_name' => 'field_progrmcn_anual_prog',
2303    'type' => 'text',
2304    'widget_type' => 'optionwidgets_select',
2305    'change' => 'Change basic information',
2306    'weight' => '28',
2307    'description' => '',
2308    'default_value' => array (
2309      0 => array (
2310        'value' => '0 ',
2311      ),
2312    ),
2313    'default_value_php' => '',
2314    'default_value_widget' => array (
2315      'field_progrmcn_anual_prog' => array (
2316        'value' => '0 ',
2317      ),
2318    ),
2319    'required' => 0,
2320    'multiple' => 1,
2321    'text_processing' => '0',
2322    'max_length' => '',
2323    'allowed_values' => '0| seleccione
2324    1| Refinería de petróleo
2325    2| Plata de gas
2326    3| Centrales hidroeléctricas
2327    4| Centrales termoeléctricas
2328    5| Residencal
2329    6| Comercial
2330    7| Transporte
2331    8| Industria
2332    9| Otros
2333    10| No aplica',
2334    'allowed_values_php' => '',
2335    'op' => 'Guardar configuraciones del campo',
2336    'module' => 'text',
2337    'widget_module' => 'optionwidgets',
2338    'columns' => array (
2339      'value' => array (
2340        'type' => 'text',
2341        'size' => 'big',
2342        'not null' => false,
2343        'sortable' => true,
2344        'views' => true,
2345      ),
2346    ),
2347    'display_settings' => array (
2348      'label' => array (
2349        'format' => 'above',
2350        'exclude' => 0,
2351      ),
2352      'teaser' => array (
2353        'format' => 'default',
2354        'exclude' => 0,
2355      ),
2356      'full' => array (
2357        'format' => 'default',
2358        'exclude' => 0,
2359      ),
2360      4 => array (
2361        'format' => 'default',
2362        'exclude' => 0,
2363      ),
2364      'modal' => array (
2365        'format' => 'default',
2366        'exclude' => 0,
2367      ),
2368      'inline' => array (
2369        'format' => 'default',
2370        'exclude' => 0,
2371      ),
2372      'token' => array (
2373        'format' => 'default',
2374        'exclude' => 0,
2375      ),
2376    ),
2377  );
2378  // campo Descripción del Proyecto
2379  $content['fields'][] = array (
2380    'label' => 'Descripción del Proyecto',
2381    'type_name' => 'proyectos_operativos',
2382    'field_name' => 'field_descripcin_proyect',
2383    'type' => 'text',
2384    'widget_type' => 'text_textarea',
2385    'change' => 'Change basic information',
2386    'weight' => '2',
2387    'rows' => '5',
2388    'size' => 60,
2389    'description' => '',
2390    'default_value' => array (
2391      0 => array (
2392        'value' => '',
2393        '_error_element' => 'default_value_widget][field_descripcin_proyect][0][value',
2394      ),
2395    ),
2396    'default_value_php' => '',
2397    'default_value_widget' => array (
2398      'field_proyecto_og' => array (
2399        0 => array (
2400          'value' => '',
2401          '_error_element' => 'default_value_widget][field_descripcin_proyect][0][value',
2402        ),
2403      ),
2404    ),
2405    'required' => 1,
2406    'multiple' => '0',
2407    'text_processing' => '0',
2408    'max_length' => '',
2409    'allowed_values' => '',
2410    'allowed_values_php' => '',
2411    'op' => 'Save field settings',
2412    'module' => 'text',
2413    'widget_module' => 'text',
2414    'columns' => array (
2415      'value' => array (
2416        'type' => 'text',
2417        'size' => 'big',
2418        'not null' => false,
2419        'sortable' => true,
2420        'views' => true,
2421      ),
2422    ),
2423    'display_settings' => array (
2424      'label' => array (
2425        'format' => 'above',
2426        'exclude' => 0,
2427      ),
2428      'teaser' => array (
2429        'format' => 'default',
2430        'exclude' => 0,
2431      ),
2432      'full' => array (
2433        'format' => 'default',
2434        'exclude' => 0,
2435      ),
2436      4 => array (
2437        'format' => 'default',
2438        'exclude' => 0,
2439      ),
2440      'inline' => array (
2441        'format' => 'default',
2442        'exclude' => 0,
2443      ),
2444      'modal' => array (
2445        'format' => 'default',
2446        'exclude' => 0,
2447      ),
2448      'token' => array (
2449        'format' => 'default',
2450        'exclude' => 0,
2451      ),
2452    ),
2453  );
2454  //definicion del campo los 5 grande temas
2455  $content['fields'][] = array (
2456    'label' => 'Cinco Grande temas',
2457    'type_name' => 'proyectos_operativos',
2458    'field_name' => 'field_proyecto_5grande_temas',
2459    'type' => 'content_taxonomy',
2460    'widget_type' => 'content_taxonomy_select',
2461    'change' => 'Change basic information',
2462    'weight' => '20',
2463    'show_depth' => 1,
2464    'group_parent' => '0',
2465    'description' => 'Seleccione el tema al que decea vincular el proyecto',
2466    'default_value' => array (
2467      0 => array (
2468        'value' => '',
2469      ),
2470    ),
2471    'default_value_php' => '',
2472    'default_value_widget' => array (
2473      'field_proyecto_5grande_temas' => array (
2474        'value' => '',
2475      ),
2476    ),
2477    'required' => 1,
2478    'multiple' => '0',
2479    'save_term_node' => 0,
2480    'vid' => variable_get('proyectos_operativos_5grandes_temas', 0),
2481    'parent' => '0',
2482    'parent_php_code' => '',
2483    'depth' => '',
2484    'op' => 'Save field settings',
2485    'module' => 'content_taxonomy',
2486    'widget_module' => 'content_taxonomy_options',
2487    'columns' => array (
2488      'value' => array (
2489        'type' => 'int',
2490        'not null' => false,
2491        'sortable' => false,
2492      ),
2493    ),
2494    'display_settings' => array (
2495      'label' => array (
2496        'format' => 'above',
2497        'exclude' => 0,
2498      ),
2499      'teaser' => array (
2500        'format' => 'default',
2501        'exclude' => 0,
2502      ),
2503      'full' => array (
2504        'format' => 'default',
2505        'exclude' => 0,
2506      ),
2507      4 => array (
2508        'format' => 'default',
2509        'exclude' => 0,
2510      ),
2511      'inline' => array (
2512        'format' => 'default',
2513        'exclude' => 0,
2514      ),
2515      'modal' => array (
2516        'format' => 'default',
2517        'exclude' => 0,
2518      ),
2519      'token' => array (
2520        'format' => 'default',
2521        'exclude' => 0,
2522      ),
2523    ),
2524  );
2525  //definiendo el campo ubicacion del proyecto
2526  $content['fields'][] = array (
2527    'label' => 'Localización del Proyecto',
2528    'type_name' => 'proyectos_operativos',
2529    'field_name' => 'field_proyecto_ubicaci_inter',
2530    'type' => 'content_taxonomy',
2531    'widget_type' => array(
2532      '#default_value' => 'content_taxonomy_hs',
2533    ),
2534    'widget' => array(
2535      'label' =>'Localización del Proyecto',
2536      'weight' => 2,
2537      'description' =>'',
2538      'type' => 'content_taxonomy_hs', 
2539      'module' => 'hs_content_taxonomy',
2540    ),
2541                'tids' => array(
2542      'config' => array(
2543        'level_labels' => array(
2544        'status' => 1,
2545        'labels' => array(
2546           0 => 'Estado',
2547           1 => 'Municipio',
2548           2 => 'Parroquia',
2549          ),
2550       ),
2551      ),
2552    ),
2553    'description' => 'Localización Internacional o Nacional del Proyecto',
2554    'change' => 'Change basic information',
2555    'weight' => '10',
2556    'show_depth' => 1,
2557    'group_parent' => '0',
2558    'default_value' => array (
2559      0 => array (
2560        'value' => '',
2561      ),
2562    ),
2563    'default_value_php' => '',
2564    'default_value_widget' => array (
2565      'field_proyecto_ubicaci_inter' => array (
2566        'value' => '',
2567      ),
2568    ),
2569    'required' => 1,
2570    'multiple' => '0',
2571    'save_term_node' => 0,
2572    'vid' => variable_get('proyectos_operativos_extra_entidad', 0),
2573    'parent' => '0',
2574    'parent_php_code' => '',
2575    'depth' => '',
2576    'op' => 'Save field settings',
2577    'module' => 'content_taxonomy',
2578    'widget_module' => 'content_taxonomy_options',
2579    'columns' => array (
2580      'value' => array (
2581        'type' => 'int',
2582        'not null' => false,
2583        'sortable' => false,
2584      ),
2585    ) ,
2586    'display_settings' => array (
2587      'label' => array (
2588        'format' => 'above',
2589        'exclude' => 0,
2590      ),
2591      'teaser' => array (
2592        'format' => 'hierarchical_text',
2593        'exclude' => 0,
2594      ),
2595      'full' => array (
2596        'format' => 'hierarchical_text',
2597        'exclude' => 0,
2598      ),
2599      4 => array (
2600        'format' => 'default',
2601        'exclude' => 0,
2602      ),
2603      'inline' => array (
2604        'format' => 'default',
2605        'exclude' => 0,
2606      ),
2607      'modal' => array (
2608        'format' => 'hierarchical_text',
2609        'exclude' => 0,
2610      ),
2611      'token' => array (
2612        'format' => 'default',
2613        'exclude' => 0,
2614      ),
2615    ),
2616  );
2617  //definiendo el campo codigo de ubicacion comunal
2618  $content['fields'][] = array (
2619    'label' => 'Código de la Comuna',
2620    'type_name' => 'proyectos_operativos',
2621    'field_name' => 'field_proyecto_codigo_comu',
2622    'type' => 'text',
2623    'widget_type' => 'text_textfield',
2624    'change' => 'Change basic information',
2625    'weight' => '2',
2626    'rows' => 5,
2627    'size' => '20',
2628    'description' => '',
2629    'default_value' => array (
2630      0 => array (
2631        'value' => '',
2632        '_error_element' => 'default_value_widget][field_proyecto_codigo_comu][0][value',
2633      ),
2634    ),
2635    'default_value_php' => '',
2636    'default_value_widget' => array (
2637      'field_proyecto_codigo_comu' => array (
2638        0 => array (
2639          'value' => '',
2640          '_error_element' => 'default_value_widget][field_proyecto_codigo_comu][0][value',
2641        ),
2642      ),
2643    ),
2644    'required' => 1,
2645    'multiple' => '0',
2646    'text_processing' => '0',
2647    'max_length' => '20',
2648    'allowed_values' => '',
2649    'allowed_values_php' => '',
2650    'op' => 'Save field settings',
2651    'module' => 'text',
2652    'widget_module' => 'text',
2653    'columns' => array (
2654      'value' => array (
2655        'type' => 'varchar',
2656        'length' => '20',
2657        'not null' => false,
2658        'sortable' => true,
2659        'views' => true,
2660      ),
2661    ),
2662    'display_settings' => array (
2663      'label' => array (
2664        'format' => 'above',
2665        'exclude' => 0,
2666      ),
2667      'teaser' => array (
2668        'format' => 'default',
2669        'exclude' => 0,
2670      ),
2671      'full' => array (
2672        'format' => 'default',
2673        'exclude' => 0,
2674      ),
2675      4 => array (
2676        'format' => 'default',
2677        'exclude' => 0,
2678      ),
2679      'inline' => array (
2680        'format' => 'default',
2681        'exclude' => 0,
2682      ),
2683      'modal' => array (
2684        'format' => 'default',
2685        'exclude' => 0,
2686      ),
2687      'token' => array (
2688        'format' => 'default',
2689        'exclude' => 0,
2690      ),
2691    ),
2692  );
2693  //definicion del Nombre de la Comuna
2694  $content['fields'][] = array (
2695    'label' => 'Nombre de la Comuna',
2696    'type_name' => 'proyectos_operativos',
2697    'field_name' => 'field_proyecto_nombres_cum',
2698    'type' => 'text',
2699    'widget_type' => 'text_textfield',
2700    'change' => 'Change basic information',
2701    'weight' => '45',
2702    'rows' => 5,
2703    'size' => '40',
2704    'description' => '',
2705    'default_value' => array (
2706      0 => array (
2707        'value' => '',
2708        '_error_element' => 'default_value_widget][field_proyecto_nombres_cum][0][value',
2709      ),
2710    ),
2711    'default_value_php' => '',
2712    'default_value_widget' => array (
2713      'field_proyecto_nombres_cum' => array (
2714        0 => array (
2715          'value' => '',
2716          '_error_element' => 'default_value_widget][field_proyecto_nombres_cum][0][value',
2717        ),
2718      ),
2719    ),
2720    'required' => 1,
2721    'multiple' => 0,
2722    'text_processing' => '0',
2723    'max_length' => '250',
2724    'allowed_values' => '',
2725    'allowed_values_php' => '',
2726    'op' => 'Save field settings',
2727    'module' => 'text',
2728    'widget_module' => 'text',
2729    'columns' => array (
2730      'value' => array (
2731        'type' => 'varchar',
2732        'length' => '250',
2733        'not null' => false,
2734        'sortable' => true,
2735        'views' => true,
2736      ),
2737    ),
2738    'display_settings' => array (
2739      'label' => array (
2740        'format' => 'above',
2741        'exclude' => 0,
2742      ),
2743      'teaser' => array (
2744        'format' => 'default',
2745        'exclude' => 0,
2746      ),
2747      'full' => array (
2748        'format' => 'default',
2749        'exclude' => 0,
2750      ),
2751      4 => array (
2752        'format' => 'default',
2753        'exclude' => 0,
2754      ),
2755      'inline' => array (
2756        'format' => 'default',
2757        'exclude' => 0,
2758      ),
2759      'modal' => array (
2760        'format' => 'default',
2761        'exclude' => 0,
2762      ),
2763      'token' => array (
2764        'format' => 'default',
2765        'exclude' => 0,
2766      ),
2767    ),
2768  );
2769  //definicion de la ubicacion de la comuna
2770  $terms = taxonomy_get_term_by_name('Venezuela');
2771        foreach($terms as $id => $term) {
2772    if (variable_get('proyectos_operativos_extra_entidad', 0) == $terms[$id]->vid) {
2773                $term = $terms[$id]->tid;
2774      break;
2775          }
2776        }
2777  $content['fields'][] = array (
2778    'label' => 'Ubicación de la Comuna',
2779    'type_name' => 'proyectos_operativos',
2780    'field_name' => 'field_proyecto_ubicaci_comu',
2781    'type' => 'content_taxonomy',
2782    'widget_type' => array(
2783      '#default_value' => 'content_taxonomy_hs',
2784    ),
2785    'widget' => array(
2786      'label' => 'Ubicación Comunal',
2787      'weight' => 2,
2788      'description' =>'',
2789      'type' => 'content_taxonomy_hs',
2790      'module' => 'hs_content_taxonomy',
2791    ),
2792    'description' => 'Ubicación Comunal del Proyecto',
2793    'change' => 'Change basic information',
2794    'weight' => '10',
2795    'show_depth' => 1,
2796    'group_parent' => '0',
2797    'default_value' => array (
2798      0 => array (
2799        'value' => '',
2800      ),
2801    ),
2802    'default_value_php' => '',
2803    'default_value_widget' => array (
2804      'field_proyecto_ubicaci_comu' => array (
2805        'value' => '',
2806      ),
2807    ),
2808    'required' => 1,
2809    'multiple' => '0',
2810    'save_term_node' => 0,
2811    'vid' => variable_get('proyectos_operativos_extra_entidad', 0),
2812    'parent' => $term, //venezuela es el papa
2813    'tids' => array(
2814      'config' => array(
2815        'level_labels' => array(
2816        'status' => 1,
2817        'labels' => array(
2818           0 => 'Estado',
2819           1 => 'Municipio',
2820           2 => 'Parroquia',
2821          ),
2822       ),
2823      ),
2824    ),
2825    'parent_php_code' => '',
2826    'depth' => '0',
2827    'op' => 'Save field settings',
2828    'module' => 'content_taxonomy',
2829    'columns' => array (
2830      'value' => array (
2831        'type' => 'int',
2832        'not null' => false,
2833        'sortable' => false,
2834      ),
2835    ) ,
2836    'display_settings' => array (
2837      'label' => array (
2838        'format' => 'above',
2839        'exclude' => 0,
2840      ),
2841      'teaser' => array (
2842        'format' => 'hierarchical_text',
2843        'exclude' => 0,
2844      ),
2845      'full' => array (
2846        'format' => 'hierarchical_text',
2847        'exclude' => 0,
2848      ),
2849      4 => array (
2850        'format' => 'default',
2851        'exclude' => 0,
2852      ),
2853      'inline' => array (
2854        'format' => 'default',
2855        'exclude' => 0,
2856      ),
2857      'modal' => array (
2858        'format' => 'hierarchical_text',
2859        'exclude' => 0,
2860      ),
2861      'token' => array (
2862        'format' => 'default',
2863        'exclude' => 0,
2864      ),
2865    ),
2866  );
2867  //fin de la definicion del campo ubicacion comunal
2868  $content['fields'][] = array (
2869    'label' => 'Nombre',
2870    'type_name' => 'proyectos_operativos',
2871    'field_name' => 'field_proyecto_nombre_gere',
2872    'type' => 'text',
2873    'widget_type' => 'text_textfield',
2874    'change' => 'Change basic information',
2875    'weight' => '45',
2876    'rows' => 5,
2877    'size' => '40',
2878    'description' => '',
2879    'default_value' => array (
2880      0 => array (
2881        'value' => '',
2882        '_error_element' => 'default_value_widget][field_proyecto_nombre_gere][0][value',
2883      ),
2884    ),
2885    'default_value_php' => '',
2886    'default_value_widget' => array (
2887      'field_proyecto_nombre_gere' => array (
2888        0 => array (
2889          'value' => '',
2890          '_error_element' => 'default_value_widget][field_proyecto_nombre_gere][0][value',
2891        ),
2892      ),
2893    ),
2894    'required' => 1,
2895    'multiple' => 0,
2896    'text_processing' => '0',
2897    'max_length' => '250',
2898    'allowed_values' => '',
2899    'allowed_values_php' => '',
2900    'op' => 'Save field settings',
2901    'module' => 'text',
2902    'widget_module' => 'text',
2903    'columns' => array (
2904      'value' => array (
2905        'type' => 'varchar',
2906        'length' => '250',
2907        'not null' => false,
2908        'sortable' => true,
2909        'views' => true,
2910      ),
2911    ),
2912    'display_settings' => array (
2913      'label' => array (
2914        'format' => 'above',
2915        'exclude' => 0,
2916      ),
2917      'teaser' => array (
2918        'format' => 'default',
2919        'exclude' => 0,
2920      ),
2921      'full' => array (
2922        'format' => 'default',
2923        'exclude' => 0,
2924      ),
2925      4 => array (
2926        'format' => 'default',
2927        'exclude' => 0,
2928      ),
2929      'inline' => array (
2930        'format' => 'default',
2931        'exclude' => 0,
2932      ),
2933      'modal' => array (
2934        'format' => 'default',
2935        'exclude' => 0,
2936      ),
2937      'token' => array (
2938        'format' => 'default',
2939        'exclude' => 0,
2940      ),
2941    ),
2942  );
2943  $content['fields'][] = array (
2944    'label' => 'Cedula de Identidad',
2945    'type_name' => 'proyectos_operativos',
2946    'field_name' => 'field_proyecto_cedul_gere',
2947    'type' => 'text',
2948    'widget_type' => 'text_textfield',
2949    'change' => 'Change basic information',
2950    'weight' => '45',
2951    'rows' => 5,
2952    'size' => '40',
2953    'description' => '',
2954    'default_value' => array (
2955      0 => array (
2956        'value' => '',
2957        '_error_element' => 'default_value_widget][field_proyecto_cedul_gere][0][value',
2958      ),
2959    ),
2960    'default_value_php' => '',
2961    'default_value_widget' => array (
2962      'field_proyecto_cedul_gere' => array (
2963        0 => array (
2964          'value' => '',
2965          '_error_element' => 'default_value_widget][field_proyecto_cedul_gere][0][value',
2966        ),
2967      ),
2968    ),
2969    'required' => 1,
2970    'multiple' => 0,
2971    'text_processing' => '0',
2972    'max_length' => '250',
2973    'allowed_values' => '',
2974    'allowed_values_php' => '',
2975    'op' => 'Save field settings',
2976    'module' => 'text',
2977    'widget_module' => 'text',
2978    'columns' => array (
2979      'value' => array (
2980        'type' => 'varchar',
2981        'length' => '250',
2982        'not null' => false,
2983        'sortable' => true,
2984        'views' => true,
2985      ),
2986    ),
2987    'display_settings' => array (
2988      'label' => array (
2989        'format' => 'above',
2990        'exclude' => 0,
2991      ),
2992      'teaser' => array (
2993        'format' => 'default',
2994        'exclude' => 0,
2995      ),
2996      'full' => array (
2997        'format' => 'default',
2998        'exclude' => 0,
2999      ),
3000      4 => array (
3001        'format' => 'default',
3002        'exclude' => 0,
3003      ),
3004      'inline' => array (
3005        'format' => 'default',
3006        'exclude' => 0,
3007      ),
3008      'modal' => array (
3009        'format' => 'default',
3010        'exclude' => 0,
3011      ),
3012      'token' => array (
3013        'format' => 'default',
3014        'exclude' => 0,
3015      ),
3016    ),
3017  );
3018  $content['fields'][] = array (
3019    'label' => 'Correo Electronico',
3020    'type_name' => 'proyectos_operativos',
3021    'field_name' => 'field_proyecto_corre_gere',
3022    'type' => 'email',
3023    'widget_type' => 'email_textfield',
3024    'change' => 'Change basic information',
3025    'weight' => '19',
3026    'size' => '40',
3027    'description' => '',
3028    'default_value' => array (
3029      0 => array (
3030        'email' => '',
3031      ),
3032    ),
3033    'default_value_php' => '',
3034    'default_value_widget' => array (
3035      'field_proyecto_corre_gere' => array (
3036        0 => array (
3037          'email' => '',
3038        ),
3039      ),
3040    ),
3041    'required' => 1,
3042    'multiple' => 0,
3043    'op' => 'Save field settings',
3044    'module' => 'email',
3045    'widget_module' => 'email',
3046    'columns' => array (
3047      'email' => array (
3048        'type' => 'varchar',
3049        'length' => 255,
3050        'not null' => false,
3051        'sortable' => true,
3052      ),
3053    ),
3054    'display_settings' => array (
3055      'label' => array (
3056        'format' => 'above',
3057        'exclude' => 0,
3058      ),
3059      'teaser' => array (
3060        'format' => 'default',
3061        'exclude' => 0,
3062      ),
3063      'full' => array (
3064        'format' => 'default',
3065        'exclude' => 0,
3066      ),
3067      4 => array (
3068        'format' => 'default',
3069        'exclude' => 0,
3070      ),
3071      'inline' => array (
3072        'format' => 'default',
3073        'exclude' => 0,
3074      ),
3075      'modal' => array (
3076        'format' => 'default',
3077        'exclude' => 0,
3078      ),
3079      'token' => array (
3080        'format' => 'default',
3081        'exclude' => 0,
3082      ),
3083    ),
3084  );
3085  $content['fields'][] = array (
3086    'label' => 'Numero Telefonico',
3087    'type_name' => 'proyectos_operativos',
3088    'field_name' => 'field_proyecto_telef_gere',
3089    'type' => 'text',
3090    'widget_type' => 'text_textfield',
3091    'change' => 'Change basic information',
3092    'weight' => '45',
3093    'rows' => 5,
3094    'size' => '40',
3095    'description' => '',
3096    'default_value' => array (
3097      0 => array (
3098        'value' => '',
3099        '_error_element' => 'default_value_widget][field_proyecto_telef_gere][0][value',
3100      ),
3101    ),
3102    'default_value_php' => '',
3103    'default_value_widget' => array (
3104      'field_proyecto_telef_gere' => array (
3105        0 => array (
3106          'value' => '',
3107          '_error_element' => 'default_value_widget][field_proyecto_telef_gere][0][value',
3108        ),
3109      ),
3110    ),
3111    'required' => 1,
3112    'multiple' => 0,
3113    'text_processing' => '0',
3114    'max_length' => '13',
3115    'allowed_values' => '',
3116    'allowed_values_php' => '',
3117    'op' => 'Save field settings',
3118    'module' => 'text',
3119    'widget_module' => 'text',
3120    'columns' => array (
3121      'value' => array (
3122        'type' => 'varchar',
3123        'length' => '250',
3124        'not null' => false,
3125        'sortable' => true,
3126        'views' => true,
3127      ),
3128    ),
3129    'display_settings' => array (
3130      'label' => array (
3131        'format' => 'above',
3132        'exclude' => 0,
3133      ),
3134      'teaser' => array (
3135        'format' => 'default',
3136        'exclude' => 0,
3137      ),
3138      'full' => array (
3139        'format' => 'default',
3140        'exclude' => 0,
3141      ),
3142      4 => array (
3143        'format' => 'default',
3144        'exclude' => 0,
3145      ),
3146      'inline' => array (
3147        'format' => 'default',
3148        'exclude' => 0,
3149      ),
3150      'modal' => array (
3151        'format' => 'default',
3152        'exclude' => 0,
3153      ),
3154      'token' => array (
3155        'format' => 'default',
3156        'exclude' => 0,
3157      ),
3158    ),
3159  );
3160  //campos responsable tecnicos
3161  $content['fields'][] = array (
3162    'label' => 'Nombre',
3163    'type_name' => 'proyectos_operativos',
3164    'field_name' => 'field_proyecto_nom_r_tec',
3165    'type' => 'text',
3166    'widget_type' => 'text_textfield',
3167    'change' => 'Change basic information',
3168    'weight' => '45',
3169    'rows' => 5,
3170    'size' => '40',
3171    'description' => '',
3172    'default_value' => array (
3173      0 => array (
3174        'value' => '',
3175        '_error_element' => 'default_value_widget][field_proyecto_nom_r_tec][0][value',
3176      ),
3177    ),
3178    'default_value_php' => '',
3179    'default_value_widget' => array (
3180      'field_proyecto_nom_r_tec' => array (
3181        0 => array (
3182          'value' => '',
3183          '_error_element' => 'default_value_widget][field_proyecto_nom_r_tec][0][value',
3184        ),
3185      ),
3186    ),
3187    'required' => 1,
3188    'multiple' => 0,
3189    'text_processing' => '0',
3190    'max_length' => '250',
3191    'allowed_values' => '',
3192    'allowed_values_php' => '',
3193    'op' => 'Save field settings',
3194    'module' => 'text',
3195    'widget_module' => 'text',
3196    'columns' => array (
3197      'value' => array (
3198        'type' => 'varchar',
3199        'length' => '250',
3200        'not null' => false,
3201        'sortable' => true,
3202        'views' => true,
3203      ),
3204    ),
3205    'display_settings' => array (
3206      'label' => array (
3207        'format' => 'above',
3208        'exclude' => 0,
3209      ),
3210      'teaser' => array (
3211        'format' => 'default',
3212        'exclude' => 0,
3213      ),
3214      'full' => array (
3215        'format' => 'default',
3216        'exclude' => 0,
3217      ),
3218      4 => array (
3219        'format' => 'default',
3220        'exclude' => 0,
3221      ),
3222      'inline' => array (
3223        'format' => 'default',
3224        'exclude' => 0,
3225      ),
3226      'modal' => array (
3227        'format' => 'default',
3228        'exclude' => 0,
3229      ),
3230      'token' => array (
3231        'format' => 'default',
3232        'exclude' => 0,
3233      ),
3234    ),
3235  );
3236  $content['fields'][] = array (
3237    'label' => 'Cedula de Identidad',
3238    'type_name' => 'proyectos_operativos',
3239    'field_name' => 'field_proyecto_ced_r_tec',
3240    'type' => 'text',
3241    'widget_type' => 'text_textfield',
3242    'change' => 'Change basic information',
3243    'weight' => '45',
3244    'rows' => 5,
3245    'size' => '40',
3246    'description' => '',
3247    'default_value' => array (
3248      0 => array (
3249        'value' => '',
3250        '_error_element' => 'default_value_widget][field_proyecto_ced_r_tec][0][value',
3251      ),
3252    ),
3253    'default_value_php' => '',
3254    'default_value_widget' => array (
3255      'field_proyecto_ced_r_tec' => array (
3256        0 => array (
3257          'value' => '',
3258          '_error_element' => 'default_value_widget][field_proyecto_ced_r_tec][0][value',
3259        ),
3260      ),
3261    ),
3262    'required' => 1,
3263    'multiple' => 0,
3264    'text_processing' => '0',
3265    'max_length' => '250',
3266    'allowed_values' => '',
3267    'allowed_values_php' => '',
3268    'op' => 'Save field settings',
3269    'module' => 'text',
3270    'widget_module' => 'text',
3271    'columns' => array (
3272      'value' => array (
3273        'type' => 'varchar',
3274        'length' => '250',
3275        'not null' => false,
3276        'sortable' => true,
3277        'views' => true,
3278      ),
3279    ),
3280    'display_settings' => array (
3281      'label' => array (
3282        'format' => 'above',
3283        'exclude' => 0,
3284      ),
3285      'teaser' => array (
3286        'format' => 'default',
3287        'exclude' => 0,
3288      ),
3289      'full' => array (
3290        'format' => 'default',
3291        'exclude' => 0,
3292      ),
3293      4 => array (
3294        'format' => 'default',
3295        'exclude' => 0,
3296      ),
3297      'inline' => array (
3298        'format' => 'default',
3299        'exclude' => 0,
3300      ),
3301      'modal' => array (
3302        'format' => 'default',
3303        'exclude' => 0,
3304      ),
3305      'token' => array (
3306        'format' => 'default',
3307        'exclude' => 0,
3308      ),
3309    ),
3310  );
3311  $content['fields'][] = array (
3312    'label' => 'Correo Electronico',
3313    'type_name' => 'proyectos_operativos',
3314    'field_name' => 'field_proyecto_cor_r_tec',
3315    'type' => 'email',
3316    'widget_type' => 'email_textfield',
3317    'change' => 'Change basic information',
3318    'weight' => '19',
3319    'size' => '40',
3320    'description' => '',
3321    'default_value' => array (
3322      0 => array (
3323        'email' => '',
3324      ),
3325    ),
3326    'default_value_php' => '',
3327    'default_value_widget' => array (
3328      'field_proyecto_cor_r_tec' => array (
3329        0 => array (
3330          'email' => '',
3331        ),
3332      ),
3333    ),
3334    'required' => 1,
3335    'multiple' => 0,
3336    'op' => 'Save field settings',
3337    'module' => 'email',
3338    'widget_module' => 'email',
3339    'columns' => array (
3340      'email' => array (
3341        'type' => 'varchar',
3342        'length' => 255,
3343        'not null' => false,
3344        'sortable' => true,
3345      ),
3346    ),
3347    'display_settings' => array (
3348      'label' => array (
3349        'format' => 'above',
3350        'exclude' => 0,
3351      ),
3352      'teaser' => array (
3353        'format' => 'default',
3354        'exclude' => 0,
3355      ),
3356      'full' => array (
3357        'format' => 'default',
3358        'exclude' => 0,
3359      ),
3360      4 => array (
3361        'format' => 'default',
3362        'exclude' => 0,
3363      ),
3364      'inline' => array (
3365        'format' => 'default',
3366        'exclude' => 0,
3367      ),
3368      'modal' => array (
3369        'format' => 'default',
3370        'exclude' => 0,
3371      ),
3372      'token' => array (
3373        'format' => 'default',
3374        'exclude' => 0,
3375      ),
3376    ),
3377  );
3378  $content['fields'][] = array (
3379    'label' => 'Numero Telefonico',
3380    'type_name' => 'proyectos_operativos',
3381    'field_name' => 'field_proyecto_tel_r_tec',
3382    'type' => 'text',
3383    'widget_type' => 'text_textfield',
3384    'change' => 'Change basic information',
3385    'weight' => '45',
3386    'rows' => 5,
3387    'size' => '40',
3388    'description' => '',
3389    'default_value' => array (
3390      0 => array (
3391        'value' => '',
3392        '_error_element' => 'default_value_widget][field_proyecto_tel_r_tec][0][value',
3393      ),
3394    ),
3395    'default_value_php' => '',
3396    'default_value_widget' => array (
3397      'field_proyecto_tel_r_tec' => array (
3398        0 => array (
3399          'value' => '',
3400          '_error_element' => 'default_value_widget][field_proyecto_tel_r_tec][0][value',
3401        ),
3402      ),
3403    ),
3404    'required' => 1,
3405    'multiple' => 0,
3406    'text_processing' => '0',
3407    'max_length' => '13',
3408    'allowed_values' => '',
3409    'allowed_values_php' => '',
3410    'op' => 'Save field settings',
3411    'module' => 'text',
3412    'widget_module' => 'text',
3413    'columns' => array (
3414      'value' => array (
3415        'type' => 'varchar',
3416        'length' => '250',
3417        'not null' => false,
3418        'sortable' => true,
3419        'views' => true,
3420      ),
3421    ),
3422    'display_settings' => array (
3423      'label' => array (
3424        'format' => 'above',
3425        'exclude' => 0,
3426      ),
3427      'teaser' => array (
3428        'format' => 'default',
3429        'exclude' => 0,
3430      ),
3431      'full' => array (
3432        'format' => 'default',
3433        'exclude' => 0,
3434      ),
3435      4 => array (
3436        'format' => 'default',
3437        'exclude' => 0,
3438      ),
3439      'inline' => array (
3440        'format' => 'default',
3441        'exclude' => 0,
3442      ),
3443      'modal' => array (
3444        'format' => 'default',
3445        'exclude' => 0,
3446      ),
3447      'token' => array (
3448        'format' => 'default',
3449        'exclude' => 0,
3450      ),
3451    ),
3452  );
3453  $content['fields'][] = array (
3454    'label' => 'Unidad Tecnica',
3455    'type_name' => 'proyectos_operativos',
3456    'field_name' => 'field_proyecto_und_r_tec',
3457    'type' => 'text',
3458    'widget_type' => 'text_textfield',
3459    'change' => 'Change basic information',
3460    'weight' => '45',
3461    'rows' => 5,
3462    'size' => '40',
3463    'description' => '',
3464    'default_value' => array (
3465      0 => array (
3466        'value' => '',
3467        '_error_element' => 'default_value_widget][field_proyecto_und_r_tec][0][value',
3468      ),
3469    ),
3470    'default_value_php' => '',
3471    'default_value_widget' => array (
3472      'field_proyecto_und_r_tec' => array (
3473        0 => array (
3474          'value' => '',
3475          '_error_element' => 'default_value_widget][field_proyecto_und_r_tec][0][value',
3476        ),
3477      ),
3478    ),
3479    'required' => 1,
3480    'multiple' => 0,
3481    'text_processing' => '0',
3482    'max_length' => '250',
3483    'allowed_values' => '',
3484    'allowed_values_php' => '',
3485    'op' => 'Save field settings',
3486    'module' => 'text',
3487    'widget_module' => 'text',
3488    'columns' => array (
3489      'value' => array (
3490        'type' => 'varchar',
3491        'length' => '250',
3492        'not null' => false,
3493        'sortable' => true,
3494        'views' => true,
3495      ),
3496    ),
3497    'display_settings' => array (
3498      'label' => array (
3499        'format' => 'above',
3500        'exclude' => 0,
3501      ),
3502      'teaser' => array (
3503        'format' => 'default',
3504        'exclude' => 0,
3505      ),
3506      'full' => array (
3507        'format' => 'default',
3508        'exclude' => 0,
3509      ),
3510      4 => array (
3511        'format' => 'default',
3512        'exclude' => 0,
3513      ),
3514      'inline' => array (
3515        'format' => 'default',
3516        'exclude' => 0,
3517      ),
3518      'modal' => array (
3519        'format' => 'default',
3520        'exclude' => 0,
3521      ),
3522      'token' => array (
3523        'format' => 'default',
3524        'exclude' => 0,
3525      ),
3526    ),
3527  );
3528  //campos responsable resgistrador
3529  $content['fields'][] = array (
3530    'label' => 'Nombre',
3531    'type_name' => 'proyectos_operativos',
3532    'field_name' => 'field_proyecto_nom_r_reg',
3533    'type' => 'text',
3534    'widget_type' => 'text_textfield',
3535    'change' => 'Change basic information',
3536    'weight' => '45',
3537    'rows' => 5,
3538    'size' => '40',
3539    'description' => '',
3540    'default_value' => array (
3541      0 => array (
3542        'value' => '',
3543        '_error_element' => 'default_value_widget][field_proyecto_nom_r_reg][0][value',
3544      ),
3545    ),
3546    'default_value_php' => '',
3547    'default_value_widget' => array (
3548      'field_proyecto_nom_r_reg' => array (
3549        0 => array (
3550          'value' => '',
3551          '_error_element' => 'default_value_widget][field_proyecto_nom_r_reg][0][value',
3552        ),
3553      ),
3554    ),
3555    'required' => 1,
3556    'multiple' =>0,
3557    'text_processing' => '0',
3558    'max_length' => '250',
3559    'allowed_values' => '',
3560    'allowed_values_php' => '',
3561    'op' => 'Save field settings',
3562    'module' => 'text',
3563    'widget_module' => 'text',
3564    'columns' => array (
3565      'value' => array (
3566        'type' => 'varchar',
3567        'length' => '250',
3568        'not null' => false,
3569        'sortable' => true,
3570        'views' => true,
3571      ),
3572    ),
3573    'display_settings' => array (
3574      'label' => array (
3575        'format' => 'above',
3576        'exclude' => 0,
3577      ),
3578      'teaser' => array (
3579        'format' => 'default',
3580        'exclude' => 0,
3581      ),
3582      'full' => array (
3583        'format' => 'default',
3584        'exclude' => 0,
3585      ),
3586      4 => array (
3587        'format' => 'default',
3588        'exclude' => 0,
3589      ),
3590      'inline' => array (
3591        'format' => 'default',
3592        'exclude' => 0,
3593      ),
3594      'modal' => array (
3595        'format' => 'default',
3596        'exclude' => 0,
3597      ),
3598      'token' => array (
3599        'format' => 'default',
3600        'exclude' => 0,
3601      ),
3602    ),
3603  );
3604  $content['fields'][] = array (
3605    'label' => 'Cedula de Identidad',
3606    'type_name' => 'proyectos_operativos',
3607    'field_name' => 'field_proyecto_ced_r_reg',
3608    'type' => 'text',
3609    'widget_type' => 'text_textfield',
3610    'change' => 'Change basic information',
3611    'weight' => '45',
3612    'rows' => 5,
3613    'size' => '40',
3614    'description' => '',
3615    'default_value' => array (
3616      0 => array (
3617        'value' => '',
3618        '_error_element' => 'default_value_widget][field_proyecto_ced_r_reg][0][value',
3619      ),
3620    ),
3621    'default_value_php' => '',
3622    'default_value_widget' => array (
3623      'field_proyecto_ced_r_reg' => array (
3624        0 => array (
3625          'value' => '',
3626          '_error_element' => 'default_value_widget][field_proyecto_ced_r_reg][0][value',
3627        ),
3628      ),
3629    ),
3630    'required' => 1,
3631    'multiple' => 0,
3632    'text_processing' => '0',
3633    'max_length' => '250',
3634    'allowed_values' => '',
3635    'allowed_values_php' => '',
3636    'op' => 'Save field settings',
3637    'module' => 'text',
3638    'widget_module' => 'text',
3639    'columns' => array (
3640      'value' => array (
3641        'type' => 'varchar',
3642        'length' => '250',
3643        'not null' => false,
3644        'sortable' => true,
3645        'views' => true,
3646      ),
3647    ),
3648    'display_settings' => array (
3649      'label' => array (
3650        'format' => 'above',
3651        'exclude' => 0,
3652      ),
3653      'teaser' => array (
3654        'format' => 'default',
3655        'exclude' => 0,
3656      ),
3657      'full' => array (
3658        'format' => 'default',
3659        'exclude' => 0,
3660      ),
3661      4 => array (
3662        'format' => 'default',
3663        'exclude' => 0,
3664      ),
3665      'inline' => array (
3666        'format' => 'default',
3667        'exclude' => 0,
3668      ),
3669      'modal' => array (
3670        'format' => 'default',
3671        'exclude' => 0,
3672      ),
3673      'token' => array (
3674        'format' => 'default',
3675        'exclude' => 0,
3676      ),
3677    ),
3678  );
3679  $content['fields'][] = array (
3680    'label' => 'Correo Electronico',
3681    'type_name' => 'proyectos_operativos',
3682    'field_name' => 'field_proyecto_cor_r_reg',
3683    'type' => 'email',
3684    'widget_type' => 'email_textfield',
3685    'change' => 'Change basic information',
3686    'weight' => '19',
3687    'size' => '40',
3688    'description' => '',
3689    'default_value' => array (
3690      0 => array (
3691        'email' => '',
3692      ),
3693    ),
3694    'default_value_php' => '',
3695    'default_value_widget' => array (
3696      'field_proyecto_cor_r_reg' => array (
3697        0 => array (
3698          'email' => '',
3699        ),
3700      ),
3701    ),
3702    'required' => 1,
3703    'multiple' => 0,
3704    'op' => 'Save field settings',
3705    'module' => 'email',
3706    'widget_module' => 'email',
3707    'columns' =>
3708    array (
3709      'email' =>
3710      array (
3711        'type' => 'varchar',
3712        'length' => 255,
3713        'not null' => false,
3714        'sortable' => true,
3715      ),
3716    ),
3717    'display_settings' => array (
3718      'label' => array (
3719        'format' => 'above',
3720        'exclude' => 0,
3721      ),
3722      'teaser' => array (
3723        'format' => 'default',
3724        'exclude' => 0,
3725      ),
3726      'full' => array (
3727        'format' => 'default',
3728        'exclude' => 0,
3729      ),
3730      4 => array (
3731        'format' => 'default',
3732        'exclude' => 0,
3733      ),
3734      'inline' => array (
3735        'format' => 'default',
3736        'exclude' => 0,
3737      ),
3738      'modal' => array (
3739        'format' => 'default',
3740        'exclude' => 0,
3741      ),
3742      'token' => array (
3743        'format' => 'default',
3744        'exclude' => 0,
3745      ),
3746    ),
3747  );
3748  $content['fields'][] = array (
3749    'label' => 'Numero Telefonico',
3750    'type_name' => 'proyectos_operativos',
3751    'field_name' => 'field_proyecto_tel_r_reg',
3752    'type' => 'text',
3753    'widget_type' => 'text_textfield',
3754    'change' => 'Change basic information',
3755    'weight' => '45',
3756    'rows' => 5,
3757    'size' => '40',
3758    'description' => '',
3759    'default_value' => array (
3760      0 => array (
3761        'value' => '',
3762        '_error_element' => 'default_value_widget][field_proyecto_tel_r_reg][0][value',
3763      ),
3764    ),
3765    'default_value_php' => '',
3766    'default_value_widget' => array (
3767      'field_proyecto_tel_r_reg' => array (
3768        0 => array (
3769          'value' => '',
3770          '_error_element' => 'default_value_widget][field_proyecto_tel_r_reg][0][value',
3771        ),
3772      ),
3773    ),
3774    'required' => 1,
3775    'multiple' => 0,
3776    'text_processing' => '0',
3777    'max_length' => '13',
3778    'allowed_values' => '',
3779    'allowed_values_php' => '',
3780    'op' => 'Save field settings',
3781    'module' => 'text',
3782    'widget_module' => 'text',
3783    'columns' => array (
3784      'value' => array (
3785        'type' => 'varchar',
3786        'length' => '250',
3787        'not null' => false,
3788        'sortable' => true,
3789        'views' => true,
3790      ),
3791    ),
3792    'display_settings' => array (
3793      'label' => array (
3794        'format' => 'above',
3795        'exclude' => 0,
3796      ),
3797      'teaser' => array (
3798        'format' => 'default',
3799        'exclude' => 0,
3800      ),
3801      'full' => array (
3802        'format' => 'default',
3803        'exclude' => 0,
3804      ),
3805      4 => array (
3806        'format' => 'default',
3807        'exclude' => 0,
3808      ),
3809      'inline' => array (
3810        'format' => 'default',
3811        'exclude' => 0,
3812      ),
3813      'modal' => array (
3814        'format' => 'default',
3815        'exclude' => 0,
3816      ),
3817      'token' => array (
3818        'format' => 'default',
3819        'exclude' => 0,
3820      ),
3821    ),
3822  );
3823  // campos responsable administrativo
3824  $content['fields'][] = array (
3825    'label' => 'Nombre',
3826    'type_name' => 'proyectos_operativos',
3827    'field_name' => 'field_proyecto_nom_r_adm',
3828    'type' => 'text',
3829    'widget_type' => 'text_textfield',
3830    'change' => 'Change basic information',
3831    'weight' => '45',
3832    'rows' => 5,
3833    'size' => '40',
3834    'description' => '',
3835    'default_value' => array (
3836      0 => array (
3837        'value' => '',
3838        '_error_element' => 'default_value_widget][field_proyecto_nom_r_adm][0][value',
3839      ),
3840    ),
3841    'default_value_php' => '',
3842    'default_value_widget' => array (
3843      'field_proyecto_nom_r_adm' => array (
3844        0 => array (
3845          'value' => '',
3846          '_error_element' => 'default_value_widget][field_proyecto_nom_r_adm][0][value',
3847        ),
3848      ),
3849    ),
3850    'required' => 1,
3851    'multiple' => 0,
3852    'text_processing' => '0',
3853    'max_length' => '250',
3854    'allowed_values' => '',
3855    'allowed_values_php' => '',
3856    'op' => 'Save field settings',
3857    'module' => 'text',
3858    'widget_module' => 'text',
3859    'columns' => array (
3860      'value' => array (
3861        'type' => 'varchar',
3862        'length' => '250',
3863        'not null' => false,
3864        'sortable' => true,
3865        'views' => true,
3866      ),
3867    ),
3868    'display_settings' => array (
3869      'label' => array (
3870        'format' => 'above',
3871        'exclude' => 0,
3872      ),
3873      'teaser' => array (
3874        'format' => 'default',
3875        'exclude' => 0,
3876      ),
3877      'full' => array (
3878        'format' => 'default',
3879        'exclude' => 0,
3880      ),
3881      4 => array (
3882        'format' => 'default',
3883        'exclude' => 0,
3884      ),
3885      'inline' => array (
3886        'format' => 'default',
3887        'exclude' => 0,
3888      ),
3889      'modal' => array (
3890        'format' => 'default',
3891        'exclude' => 0,
3892      ),
3893      'token' => array (
3894        'format' => 'default',
3895        'exclude' => 0,
3896      ),
3897    ),
3898  );
3899  $content['fields'][] = array (
3900    'label' => 'Cedula de Identidad',
3901    'type_name' => 'proyectos_operativos',
3902    'field_name' => 'field_proyecto_ced_r_adm',
3903    'type' => 'text',
3904    'widget_type' => 'text_textfield',
3905    'change' => 'Change basic information',
3906    'weight' => '45',
3907    'rows' => 5,
3908    'size' => '40',
3909    'description' => '',
3910    'default_value' => array (
3911      0 => array (
3912        'value' => '',
3913        '_error_element' => 'default_value_widget][field_proyecto_ced_r_adm][0][value',
3914      ),
3915    ),
3916    'default_value_php' => '',
3917    'default_value_widget' => array (
3918      'field_proyecto_ced_r_adm' => array (
3919        0 => array (
3920          'value' => '',
3921          '_error_element' => 'default_value_widget][field_proyecto_ced_r_adm][0][value',
3922        ),
3923      ),
3924    ),
3925    'required' => 1,
3926    'multiple' => 0,
3927    'text_processing' => '0',
3928    'max_length' => '250',
3929    'allowed_values' => '',
3930    'allowed_values_php' => '',
3931    'op' => 'Save field settings',
3932    'module' => 'text',
3933    'widget_module' => 'text',
3934    'columns' => array (
3935      'value' => array (
3936        'type' => 'varchar',
3937        'length' => '250',
3938        'not null' => false,
3939        'sortable' => true,
3940        'views' => true,
3941      ),
3942    ),
3943    'display_settings' => array (
3944      'label' => array (
3945        'format' => 'above',
3946        'exclude' => 0,
3947      ),
3948      'teaser' => array (
3949        'format' => 'default',
3950        'exclude' => 0,
3951      ),
3952      'full' => array (
3953        'format' => 'default',
3954        'exclude' => 0,
3955      ),
3956      4 => array (
3957        'format' => 'default',
3958        'exclude' => 0,
3959      ),
3960      'inline' => array (
3961        'format' => 'default',
3962        'exclude' => 0,
3963      ),
3964      'modal' => array (
3965        'format' => 'default',
3966        'exclude' => 0,
3967      ),
3968      'token' => array (
3969        'format' => 'default',
3970        'exclude' => 0,
3971      ),
3972    ),
3973  );
3974  $content['fields'][] = array (
3975    'label' => 'Correo Electronico',
3976    'type_name' => 'proyectos_operativos',
3977    'field_name' => 'field_proyecto_cor_r_adm',   
3978    'type' => 'email',
3979    'widget_type' => 'email_textfield',
3980    'change' => 'Change basic information',
3981    'weight' => '19',
3982    'size' => '40',
3983    'description' => '',
3984    'default_value' => array (
3985      0 => array (
3986        'email' => '',
3987      ),
3988    ),
3989    'default_value_php' => '',
3990    'default_value_widget' => array (
3991      'field_proyecto_cor_r_adm' => array (
3992        0 => array (
3993          'email' => '',
3994        ),
3995      ),
3996    ),
3997    'required' => 1,
3998    'multiple' => 0,
3999    'text_processing' => '0',
4000    'max_length' => '250',
4001    'allowed_values' => '',
4002    'allowed_values_php' => '',
4003    'op' => 'Save field settings',
4004    'module' => 'email',
4005    'widget_module' => 'email',
4006    'columns' => array (
4007      'value' => array (
4008        'type' => 'varchar',
4009        'length' => '250',
4010        'not null' => false,
4011        'sortable' => true,
4012        'views' => true,
4013      ),
4014    ),
4015    'display_settings' => array (
4016      'label' => array (
4017        'format' => 'above',
4018        'exclude' => 0,
4019      ),
4020      'teaser' => array (
4021        'format' => 'default',
4022        'exclude' => 0,
4023      ),
4024      'full' => array (
4025        'format' => 'default',
4026        'exclude' => 0,
4027      ),
4028      4 => array (
4029        'format' => 'default',
4030        'exclude' => 0,
4031      ),
4032      'inline' => array (
4033        'format' => 'default',
4034        'exclude' => 0,
4035      ),
4036      'modal' => array (
4037        'format' => 'default',
4038        'exclude' => 0,
4039      ),
4040      'token' => array (
4041        'format' => 'default',
4042        'exclude' => 0,
4043      ),
4044    ),
4045  );
4046  $content['fields'][] = array (
4047    'label' => 'Numero Telefónico',
4048    'type_name' => 'proyectos_operativos',
4049    'field_name' => 'field_proyecto_tel_r_adm',
4050    'type' => 'text',
4051    'widget_type' => 'text_textfield',
4052    'change' => 'Change basic information',
4053    'weight' => '45',
4054    'rows' => 5,
4055    'size' => '40',
4056    'description' => '',
4057    'default_value' => array (
4058      0 => array (
4059        'value' => '',
4060        '_error_element' => 'default_value_widget][field_proyecto_tel_r_adm][0][value',
4061      ),
4062    ),
4063    'default_value_php' => '',
4064    'default_value_widget' => array (
4065      'field_proyecto_tel_r_adm' => array (
4066        0 => array (
4067          'value' => '',
4068          '_error_element' => 'default_value_widget][field_proyecto_tel_r_adm][0][value',
4069        ),
4070      ),
4071    ),
4072    'required' => 1,
4073    'multiple' => 0,
4074    'text_processing' => '0',
4075    'max_length' => '13',
4076    'allowed_values' => '',
4077    'allowed_values_php' => '',
4078    'op' => 'Save field settings',
4079    'module' => 'text',
4080    'widget_module' => 'text',
4081    'columns' => array (
4082      'value' => array (
4083        'type' => 'varchar',
4084        'length' => '250',
4085        'not null' => false,
4086        'sortable' => true,
4087        'views' => true,
4088      ),
4089    ),
4090    'display_settings' => array (
4091      'label' => array (
4092        'format' => 'above',
4093        'exclude' => 0,
4094      ),
4095      'teaser' => array (
4096        'format' => 'default',
4097        'exclude' => 0,
4098      ),
4099      'full' => array (
4100        'format' => 'default',
4101        'exclude' => 0,
4102      ),
4103      4 => array (
4104        'format' => 'default',
4105        'exclude' => 0,
4106      ),
4107      'inline' => array (
4108        'format' => 'default',
4109        'exclude' => 0,
4110      ),
4111      'modal' => array (
4112        'format' => 'default',
4113        'exclude' => 0,
4114      ),
4115      'token' => array (
4116        'format' => 'default',
4117        'exclude' => 0,
4118      ),
4119    ),
4120  );
4121  $content['fields'][] = array (
4122    'label' => 'Unidad administradora',
4123    'type_name' => 'proyectos_operativos',
4124    'field_name' => 'field_proyecto_und_r_adm',
4125    'type' => 'text',
4126    'widget_type' => 'text_textfield',
4127    'change' => 'Change basic information',
4128    'weight' => '45',
4129    'rows' => 5,
4130    'size' => '40',
4131    'description' => '',
4132    'default_value' => array (
4133      0 => array (
4134        'value' => '',
4135        '_error_element' => 'default_value_widget][field_proyecto_und_r_adm][0][value',
4136      ),
4137    ),
4138    'default_value_php' => '',
4139    'default_value_widget' => array (
4140      'field_proyecto_und_r_adm' => array (
4141        0 => array (
4142          'value' => '',
4143          '_error_element' => 'default_value_widget][field_proyecto_und_r_adm][0][value',
4144        ),
4145      ),
4146    ),
4147    'required' => 1,
4148    'multiple' => 0,
4149    'text_processing' => '0',
4150    'max_length' => '250',
4151    'allowed_values' => '',
4152    'allowed_values_php' => '',
4153    'op' => 'Save field settings',
4154    'module' => 'text',
4155    'widget_module' => 'text',
4156    'columns' => array (
4157      'value' => array (
4158        'type' => 'varchar',
4159        'length' => '250',
4160        'not null' => false,
4161        'sortable' => true,
4162        'views' => true,
4163      ),
4164    ),
4165    'display_settings' => array (
4166      'label' => array (
4167        'format' => 'above',
4168        'exclude' => 0,
4169      ),
4170      'teaser' => array (
4171        'format' => 'default',
4172        'exclude' => 0,
4173      ),
4174      'full' => array (
4175        'format' => 'default',
4176        'exclude' => 0,
4177      ),
4178      4 => array (
4179        'format' => 'default',
4180        'exclude' => 0,
4181      ),
4182      'inline' => array (
4183        'format' => 'default',
4184        'exclude' => 0,
4185      ),
4186      'modal' => array (
4187        'format' => 'default',
4188        'exclude' => 0,
4189      ),
4190      'token' => array (
4191        'format' => 'default',
4192        'exclude' => 0,
4193      ),
4194    ),
4195  );
4196  //campo problemas que se abordan con el proyecto
4197  $content['fields'][] = array (
4198    'label' => 'Problemas que se abordan con el Proyecto',
4199    'type_name' => 'proyectos_operativos',
4200    'field_name' => 'field_proyect_probl_abord',
4201    'type' => 'text',
4202    'widget_type' => 'text_textarea',
4203    'change' => 'Change basic information',
4204    'weight' => '37',
4205    'rows' => '5',
4206    'size' => 60,
4207    'description' => '',
4208    'default_value' => array (
4209      0 => array (
4210        'value' => '',
4211        '_error_element' => 'default_value_widget][field_proyect_probl_abord][0][value',
4212      ),
4213    ),
4214    'default_value_php' => '',
4215    'default_value_widget' => array (
4216      'field_proyect_probl_abord' => array (
4217        0 => array (
4218          'value' => '',
4219          '_error_element' => 'default_value_widget][field_proyect_probl_abord][0][value',
4220        ),
4221      ),
4222    ),
4223    'required' => 0,
4224    'multiple' => '0',
4225    'text_processing' => '0',
4226    'max_length' => '',
4227    'op' => 'Save field settings',
4228    'module' => 'text',
4229    'widget_module' => 'text',
4230    'columns' => array (
4231      'value' => array (
4232        'type' => 'text',
4233        'size' => 'big',
4234        'not null' => false,
4235        'sortable' => true,
4236        'views' => true,
4237      ),
4238    ),
4239    'display_settings' => array (
4240      'label' => array (
4241        'format' => 'above',
4242        'exclude' => 0,
4243      ),
4244      'teaser' => array (
4245        'format' => 'default',
4246        'exclude' => 0,
4247      ),
4248      'full' => array (
4249        'format' => 'default',
4250        'exclude' => 0,
4251      ),
4252      4 => array (
4253        'format' => 'default',
4254        'exclude' => 0,
4255      ),
4256      'inline' => array (
4257        'format' => 'default',
4258        'exclude' => 0,
4259      ),
4260      'modal' => array (
4261        'format' => 'default',
4262        'exclude' => 0,
4263      ),
4264      'token' => array (
4265        'format' => 'default',
4266        'exclude' => 0,
4267      ),
4268    ),
4269  );
4270  //campo Causas que se abordan con el proyecto
4271  $content['fields'][] = array (
4272    'label' => 'Causas que se abordan con el Proyecto',
4273    'type_name' => 'proyectos_operativos',
4274    'field_name' => 'field_proyect_cau_abord',
4275    'type' => 'text',
4276    'widget_type' => 'text_textarea',
4277    'change' => 'Change basic information',
4278    'weight' => '37',
4279    'rows' => '5',
4280    'size' => 60,
4281    'description' => '',
4282    'default_value' => array (
4283      0 => array (
4284        'value' => '',
4285        '_error_element' => 'default_value_widget][field_proyect_cau_abord][0][value',
4286      ),
4287    ),
4288    'default_value_php' => '',
4289    'default_value_widget' => array (
4290      'field_proyect_cau_abord' => array (
4291        0 => array (
4292          'value' => '',
4293          '_error_element' => 'default_value_widget][field_proyect_cau_abord][0][value',
4294        ),
4295      ),
4296    ),
4297    'required' => 0,
4298    'multiple' => '0',
4299    'text_processing' => '0',
4300    'max_length' => '',
4301    'op' => 'Save field settings',
4302    'module' => 'text',
4303    'widget_module' => 'text',
4304    'columns' => array (
4305      'value' => array (
4306        'type' => 'text',
4307        'size' => 'big',
4308        'not null' => false,
4309        'sortable' => true,
4310        'views' => true,
4311      ),
4312    ),
4313    'display_settings' => array (
4314      'label' => array (
4315        'format' => 'above',
4316        'exclude' => 0,
4317      ),
4318      'teaser' => array (
4319        'format' => 'default',
4320        'exclude' => 0,
4321      ),
4322      'full' => array (
4323        'format' => 'default',
4324        'exclude' => 0,
4325      ),
4326      4 => array (
4327        'format' => 'default',
4328        'exclude' => 0,
4329      ),
4330      'inline' => array (
4331        'format' => 'default',
4332        'exclude' => 0,
4333      ),
4334      'modal' => array (
4335        'format' => 'default',
4336        'exclude' => 0,
4337      ),
4338      'token' => array (
4339        'format' => 'default',
4340        'exclude' => 0,
4341      ),
4342    ),
4343  );
4344  return $content;
4345 }
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.