source: sipes/0.3-modules/proyectos_operativos_mcti/proyectos_operativos_mcti.install @ 71f23a2

stableversion-3.0
Last change on this file since 71f23a2 was 8555750, checked in by lhernandez <lhernandez@…>, 8 años ago

se modifico un error en el nombre del campo

  • Propiedad mode establecida a 100755
File size: 108.5 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' => '
1339      0| seleccione
1340      1| Refinería de petróleo
1341      2| Plata de gas
1342      3| Centrales hidroeléctricas
1343      4| Centrales termoeléctricas
1344      5| Residencial
1345      6| Comercial
1346      7| Transporte
1347      8| Industria
1348      9| Otros
1349      10| No aplica',
1350    'allowed_values_php' => '',
1351    'op' => 'Guardar configuraciones del campo',
1352    'module' => 'text',
1353    'widget_module' => 'optionwidgets',
1354    'columns' => array (
1355      'value' => array (
1356        'type' => 'text',
1357        'size' => 'big',
1358        'not null' => false,
1359        'sortable' => true,
1360        'views' => true,
1361      ),
1362    ),
1363    'display_settings' => array (
1364      'label' => array (
1365        'format' => 'above',
1366        'exclude' => 0,
1367      ),
1368      'teaser' => array (
1369        'format' => 'default',
1370        'exclude' => 0,
1371      ),
1372      'full' => array (
1373        'format' => 'default',
1374        'exclude' => 0,
1375      ),
1376      4 => array (
1377        'format' => 'default',
1378        'exclude' => 0,
1379      ),
1380      'modal' => array (
1381        'format' => 'default',
1382        'exclude' => 0,
1383      ),
1384      'inline' => array (
1385        'format' => 'default',
1386        'exclude' => 0,
1387      ),
1388      'token' => array (
1389        'format' => 'default',
1390        'exclude' => 0,
1391      ),
1392    ),
1393  );
1394  //anadiendo el programacion anual por productor
1395   $content['fields'][] = array (
1396    'label' => 'Fuente',
1397    'type_name' => 'proyectos_operativos',
1398    'field_name' => 'field_balance_fuente',
1399    'type' => 'text',
1400    'widget_type' => 'optionwidgets_select',
1401    'change' => 'Change basic information',
1402    'weight' => '29',
1403    'description' => '',
1404    'default_value' => array (
1405      0 => array (
1406        'value' => '0 ',
1407      ),
1408    ),
1409    'default_value_php' => '',
1410    'default_value_widget' => array (
1411      'field_balance_fuente' => array (
1412        'value' => '0 ',
1413      ),
1414    ),
1415    'required' => 0,
1416    'multiple' => 1,
1417    'text_processing' => '0',
1418    'max_length' => '',
1419    'allowed_values' => '
1420      0| seleccione
1421      1| Energía primaria
1422      2| Energía secundaria',
1423    'allowed_values_php' => '',
1424    'op' => 'Guardar configuraciones del campo',
1425    'module' => 'text',
1426    'widget_module' => 'optionwidgets',
1427    'columns' => array (
1428      'value' => array (
1429        'type' => 'text',
1430        'size' => 'big',
1431        'not null' => false,
1432        'sortable' => true,
1433        'views' => true,
1434      ),
1435    ),
1436    'display_settings' => array (
1437      'label' => array (
1438        'format' => 'above',
1439        'exclude' => 0,
1440      ),
1441      'teaser' => array (
1442        'format' => 'default',
1443        'exclude' => 0,
1444      ),
1445      'full' => array (
1446        'format' => 'default',
1447        'exclude' => 0,
1448      ),
1449      4 => array (
1450        'format' => 'default',
1451        'exclude' => 0,
1452      ),
1453      'modal' => array (
1454        'format' => 'default',
1455        'exclude' => 0,
1456      ),
1457      'inline' => array (
1458        'format' => 'default',
1459        'exclude' => 0,
1460      ),
1461      'token' => array (
1462        'format' => 'default',
1463        'exclude' => 0,
1464      ),
1465    ),
1466  );
1467  //anadiendo el campo tipo de fuente
1468   $content['fields'][] = array (
1469    'label' => 'Tipo de Fuente',
1470    'type_name' => 'proyectos_operativos',
1471    'field_name' => 'field_balanc_tipofuent',
1472    'type' => 'text',
1473    'widget_type' => 'optionwidgets_select',
1474    'change' => 'Change basic information',
1475    'weight' => '30',
1476    'description' => '',
1477    'default_value' => array (
1478      0 => array (
1479        'value' => '0 ',
1480      ),
1481    ),
1482    'default_value_php' => '',
1483    'default_value_widget' => array (
1484      'field_balanc_tipofuent' => array (
1485        'value' => '0 ',
1486      ),
1487    ),
1488    'required' => 0,
1489    'multiple' => 1,
1490    'text_processing' => '0',
1491    'max_length' => '',
1492    'allowed_values' => '
1493      0| seleccione
1494      1| Petróleo
1495      2| Hidro energía
1496      3| Gas Natural
1497      4| Carbono
1498      5| Biomasa
1499      6| Energía solar
1500      7| Energía nuclear
1501      8| Energía del viento
1502      9| Leña',
1503    'allowed_values_php' => '',
1504    'op' => 'Guardar configuraciones del campo',
1505    'module' => 'text',
1506    'widget_module' => 'optionwidgets',
1507    'columns' => array (
1508      'value' => array (
1509        'type' => 'text',
1510        'size' => 'big',
1511        'not null' => false,
1512        'sortable' => true,
1513        'views' => true,
1514      ),
1515    ),
1516    'display_settings' => array (
1517      'label' => array (
1518        'format' => 'above',
1519        'exclude' => 0,
1520      ),
1521      'teaser' => array (
1522        'format' => 'default',
1523        'exclude' => 0,
1524      ),
1525      'full' => array (
1526        'format' => 'default',
1527        'exclude' => 0,
1528      ),
1529      4 => array (
1530        'format' => 'default',
1531        'exclude' => 0,
1532      ),
1533      'modal' => array (
1534        'format' => 'default',
1535        'exclude' => 0,
1536      ),
1537      'inline' => array (
1538        'format' => 'default',
1539        'exclude' => 0,
1540      ),
1541      'token' => array (
1542        'format' => 'default',
1543        'exclude' => 0,
1544      ),
1545    ),
1546  );
1547  //anadiendo el camo tipo de producto
1548  $content['fields'][] = array (
1549    'label' => 'Tipo de Producto',
1550    'type_name' => 'proyectos_operativos',
1551    'field_name' => 'field_balanc_tipoprod',
1552    'type' => 'text',
1553    'widget_type' => 'optionwidgets_select',
1554    'change' => 'Change basic information',
1555    'weight' => '31',
1556    'description' => '',
1557    'default_value' => array (
1558      0 => array (
1559        'value' => '0 ',
1560      ),
1561    ),
1562    'default_value_php' => '',
1563    'default_value_widget' => array (
1564      'field_balanc_tipoprod' => array (
1565        'value' => '0 ',
1566      ),
1567    ),
1568    'required' => 0,
1569    'multiple' => 1,
1570    'text_processing' => '0',
1571    'max_length' => '',
1572    'allowed_values' => '
1573      0| seleccione
1574      1| Petróleo
1575      2| Hidro energía
1576      3| Gas Natural
1577      4| Carbono
1578      5| Biomasa
1579      6| Energía solar
1580      7| Energía nuclear
1581      8| Energía del viento
1582      9| Leña',
1583    'allowed_values_php' => '',
1584    'op' => 'Guardar configuraciones del campo',
1585    'module' => 'text',
1586    'widget_module' => 'optionwidgets',
1587    'columns' => array (
1588      'value' => array (
1589        'type' => 'text',
1590        'size' => 'big',
1591        'not null' => false,
1592        'sortable' => true,
1593        'views' => true,
1594      ),
1595    ),
1596    'display_settings' => array (
1597      'label' => array (
1598        'format' => 'above',
1599        'exclude' => 0,
1600      ),
1601      'teaser' => array (
1602        'format' => 'default',
1603        'exclude' => 0,
1604      ),
1605      'full' => array (
1606        'format' => 'default',
1607        'exclude' => 0,
1608      ),
1609      4 => array (
1610        'format' => 'default',
1611        'exclude' => 0,
1612      ),
1613      'modal' => array (
1614        'format' => 'default',
1615        'exclude' => 0,
1616      ),
1617      'inline' => array (
1618        'format' => 'default',
1619        'exclude' => 0,
1620      ),
1621      'token' => array (
1622        'format' => 'default',
1623        'exclude' => 0,
1624      ),
1625    ),
1626  );
1627  //anadiendo el camo unidad de medida
1628  $content['fields'][] = array (
1629    'label' => 'Unidad de Medida',
1630    'type_name' => 'proyectos_operativos',
1631    'field_name' => 'field_balanc_unidmed',
1632    'type' => 'text',
1633    'widget_type' => 'optionwidgets_select',
1634    'change' => 'Change basic information',
1635    'weight' => '31',
1636    'description' => '',
1637    'default_value' => array (
1638      0 => array (
1639        'value' => '0 ',
1640      ),
1641    ),
1642    'default_value_php' => '',
1643    'default_value_widget' => array (
1644      'field_balanc_unidmed' => array (
1645        'value' => '0 ',
1646      ),
1647    ),
1648    'required' => 0,
1649    'multiple' => 1,
1650    'text_processing' => '0',
1651    'max_length' => '',
1652    'allowed_values' => '
1653      0| seleccione
1654      1| Coulimbio
1655      2| Julio
1656      3| Vatio
1657      4| Faradio
1658      5| Henrio
1659      6| Ohmio
1660      7| Voltio
1661      8| Hertz',
1662    'allowed_values_php' => '',
1663    'op' => 'Guardar configuraciones del campo',
1664    'module' => 'text',
1665    'widget_module' => 'optionwidgets',
1666    'columns' => array (
1667      'value' => array (
1668        'type' => 'text',
1669        'size' => 'big',
1670        'not null' => false,
1671        'sortable' => true,
1672        'views' => true,
1673      ),
1674    ),
1675    'display_settings' => array (
1676      'label' => array (
1677        'format' => 'above',
1678        'exclude' => 0,
1679      ),
1680      'teaser' => array (
1681        'format' => 'default',
1682        'exclude' => 0,
1683      ),
1684      'full' => array (
1685        'format' => 'default',
1686        'exclude' => 0,
1687      ),
1688      4 => array (
1689        'format' => 'default',
1690        'exclude' => 0,
1691      ),
1692      'modal' => array (
1693        'format' => 'default',
1694        'exclude' => 0,
1695      ),
1696      'inline' => array (
1697        'format' => 'default',
1698        'exclude' => 0,
1699      ),
1700      'token' => array (
1701        'format' => 'default',
1702        'exclude' => 0,
1703      ),
1704    ),
1705  );
1706  $content['fields'][] = array (
1707    'label' => 'Capacidad',
1708    'type_name' => 'proyectos_operativos',
1709    'field_name' => 'field_balanc_capacid',
1710    'type' => 'text',
1711    'widget_type' => 'text_textfield',
1712    'change' => 'Change basic information',
1713    'weight' => '32',
1714    'rows' => 5,
1715    'size' => '20',
1716    'description' => '',
1717    'default_value' => array (
1718      0 => array (
1719        'value' => '',
1720        '_error_element' => 'default_value_widget][field_balanc_capacid][0][value',
1721      ),
1722    ),
1723    'default_value_php' => '',
1724    'default_value_widget' => NULL,
1725    'required' => 0,
1726    'multiple' => 1,
1727    'text_processing' => '0',
1728    'max_length' => '20',
1729    'op' => 'Save field settings',
1730    'module' => 'text',
1731    'widget_module' => 'text',
1732    'columns' => array (
1733      'value' => array (
1734        'type' => 'varchar',
1735        'length' => '20',
1736        'not null' => false,
1737        'sortable' => true,
1738        'views' => true,
1739      ),
1740    ),
1741    'display_settings' => array (
1742      'label' => array (
1743        'format' => 'above',
1744        'exclude' => 0,
1745      ),
1746      'teaser' => array (
1747        'format' => 'default',
1748        'exclude' => 0,
1749      ),
1750      'full' => array (
1751        'format' => 'default',
1752        'exclude' => 0,
1753      ),
1754      4 => array (
1755        'format' => 'default',
1756        'exclude' => 0,
1757      ),
1758      'inline' => array (
1759        'format' => 'default',
1760        'exclude' => 0,
1761      ),
1762      'modal' => array (
1763        'format' => 'default',
1764        'exclude' => 0,
1765      ),
1766      'token' => array (
1767        'format' => 'default',
1768        'exclude' => 0,
1769      ),
1770    ),
1771  );
1772  $content['fields'][] = array (
1773    'label' => 'Año',
1774    'type_name' => 'proyectos_operativos',
1775    'field_name' => 'field_balanc_anho',
1776    'type' => 'date',
1777    'change' => 'Change basic information',
1778    'weight' => '35',
1779    'widget_active' => 1,
1780    'type' => 'date',
1781    'required' => 0,
1782    'multiple' => 0,
1783    'db_storage' => 1,
1784    'module' => 'date',
1785    'active' => 1,
1786    'locked' => 0,
1787    'columns' => array(
1788      'value' => array(
1789        'type' => 'varchar',
1790        'length' => 20,
1791        'not null' => '',
1792        'sortable' => 1,
1793        'views' => 1,
1794      ),
1795    ),
1796    'granularity' => array(
1797      'year' => 'year',
1798    ),
1799    'timezone_db' => '',
1800    'tz_handling' => 'none',
1801    'todate' => '',
1802    'repeat' => 0,
1803    'repeat_collapsed' => '',
1804    'default_format' => 'medium',
1805    'widget' => array(
1806      'default_value' => 'now',
1807      'default_value_code' => '',
1808      'default_value2' => 'same',
1809      'default_value_code2' => '',
1810      'input_format' => 'm/d/Y - H:i:s',
1811      'input_format_custom' => '',
1812      'increment' => 1,
1813      'text_parts' => array(),
1814      'year_range' => '-10:+10',
1815      'label_position' => 'above',
1816      'label' => 'Año',
1817      'weight' => 60,
1818      'description' => '',
1819      'type' => 'date_select',
1820      'module' => 'date',
1821    ),
1822    'display_settings' => array (
1823      'label' => array (
1824        'format' => 'above',
1825        'exclude' => 0,
1826      ),
1827      'teaser' => array (
1828        'format' => 'default',
1829        'exclude' => 0,
1830      ),
1831      'full' => array (
1832        'format' => 'default',
1833        'exclude' => 0,
1834      ),
1835      4 => array (
1836        'format' => 'default',
1837        'exclude' => 0,
1838      ),
1839      'inline' => array (
1840        'format' => 'default',
1841        'exclude' => 0,
1842      ),
1843      'modal' => array (
1844        'format' => 'default',
1845        'exclude' => 0,
1846      ),
1847      'token' => array (
1848        'format' => 'default',
1849        'exclude' => 0,
1850      ),
1851    ),
1852  );
1853  //anadiendo el campo recuperabilidad
1854  $content['fields'][] = array (
1855    'label' => 'Recuperabilidad',
1856    'type_name' => 'proyectos_operativos',
1857    'field_name' => 'field_factor_recuperabilidad',
1858    'type' => 'text',
1859    'widget_type' => 'optionwidgets_select',
1860    'change' => 'Change basic information',
1861    'weight' => '37',
1862    'description' => '',
1863    'default_value' => array (
1864      0 => array (
1865        'value' => '0 ',
1866      ),
1867    ),
1868    'default_value_php' => '',
1869    'default_value_widget' => array (
1870      'field_factor_recuperabilidad' => array (
1871        'value' => '0 ',
1872      ),
1873    ),
1874    'required' => 1,
1875    'multiple' => '0',
1876    'text_processing' => '0',
1877    'max_length' => '',
1878    'allowed_values' => '
1879      0| seleccione
1880      1| Inmediata
1881      2| Mediano Plazo
1882      3| Mitigable
1883      4| Irrecuperable
1884      5| No aplica',
1885    'allowed_values_php' => '',
1886    'op' => 'Guardar configuraciones del campo',
1887    'module' => 'text',
1888    'widget_module' => 'optionwidgets',
1889    'columns' => array (
1890      'value' => array (
1891        'type' => 'text',
1892        'size' => 'big',
1893        'not null' => false,
1894        'sortable' => true,
1895        'views' => true,
1896      ),
1897    ),
1898    'display_settings' => array (
1899      'label' => array (
1900        'format' => 'above',
1901        'exclude' => 0,
1902      ),
1903      'teaser' => array (
1904        'format' => 'default',
1905        'exclude' => 0,
1906      ),
1907      'full' => array (
1908        'format' => 'default',
1909        'exclude' => 0,
1910      ),
1911      4 => array (
1912        'format' => 'default',
1913        'exclude' => 0,
1914      ),
1915      'modal' => array (
1916        'format' => 'default',
1917        'exclude' => 0,
1918      ),
1919      'inline' => array (
1920        'format' => 'default',
1921        'exclude' => 0,
1922      ),
1923      'token' => array (
1924        'format' => 'default',
1925        'exclude' => 0,
1926      ),
1927    ),
1928  );
1929  //anadiendo el campo importancia
1930  $content['fields'][] = array (
1931    'label' => 'Importancia',
1932    'type_name' => 'proyectos_operativos',
1933    'field_name' => 'field_factor_importancia',
1934    'type' => 'text',
1935    'widget_type' => 'optionwidgets_select',
1936    'change' => 'Change basic information',
1937    'weight' => '38',
1938    'description' => '',
1939    'default_value' => array (
1940      0 => array (
1941        'value' => '0 ',
1942      ),
1943    ),
1944    'default_value_php' => '',
1945    'default_value_widget' => array (
1946      'field_factor_importancia' => array (
1947        'value' => '0 ',
1948      ),
1949    ),
1950    'required' => 1,
1951    'multiple' => '0',
1952    'text_processing' => '0',
1953    'max_length' => '',
1954    'allowed_values' => '
1955      0| seleccione
1956      1| Irrelevante
1957      2| Moderado
1958      3| Severo
1959      4| Crítico
1960      5| No aplica',
1961    'allowed_values_php' => '',
1962    'op' => 'Guardar configuraciones del campo',
1963    'module' => 'text',
1964    'widget_module' => 'optionwidgets',
1965    'columns' => array (
1966      'value' => array (
1967        'type' => 'text',
1968        'size' => 'big',
1969        'not null' => false,
1970        'sortable' => true,
1971        'views' => true,
1972      ),
1973    ),
1974    'display_settings' => array (
1975      'label' => array (
1976        'format' => 'above',
1977        'exclude' => 0,
1978      ),
1979      'teaser' => array (
1980        'format' => 'default',
1981        'exclude' => 0,
1982      ),
1983      'full' => array (
1984        'format' => 'default',
1985        'exclude' => 0,
1986      ),
1987      4 => array (
1988        'format' => 'default',
1989        'exclude' => 0,
1990      ),
1991      'modal' => array (
1992        'format' => 'default',
1993        'exclude' => 0,
1994      ),
1995      'inline' => array (
1996        'format' => 'default',
1997        'exclude' => 0,
1998      ),
1999      'token' => array (
2000        'format' => 'default',
2001        'exclude' => 0,
2002      ),
2003    ),
2004  );
2005  //campo medidas para mitigar o eliminar los impactos ambientales de este proyecto
2006  $content['fields'][] = array (
2007    'label' => '¿Cuales serán las medidas para mitigar o eliminar los impactos ambientales de este proyecto?',
2008    'type_name' => 'proyectos_operativos',
2009    'field_name' => 'field_factor_medids_impact',
2010    'type' => 'text',
2011    'widget_type' => 'text_textarea',
2012    'change' => 'Change basic information',
2013    'weight' => '39',
2014    'rows' => '5',
2015    'size' => 60,
2016    'description' => '',
2017    'default_value' => array (
2018      0 => array (
2019        'value' => '',
2020        '_error_element' => 'default_value_widget][field_factor_medids_impact][0][value',
2021      ),
2022    ),
2023    'default_value_php' => '',
2024    'default_value_widget' => array (
2025      'field_factor_medids_impact' => array (
2026        0 => array (
2027          'value' => '',
2028          '_error_element' => 'default_value_widget][field_factor_medids_impact][0][value',
2029        ),
2030      ),
2031    ),
2032    'required' => 0,
2033    'multiple' => '0',
2034    'text_processing' => '0',
2035    'max_length' => '',
2036    'op' => 'Save field settings',
2037    'module' => 'text',
2038    'widget_module' => 'text',
2039    'columns' => array (
2040      'value' => array (
2041        'type' => 'text',
2042        'size' => 'big',
2043        'not null' => false,
2044        'sortable' => true,
2045        'views' => true,
2046      ),
2047    ),
2048    'display_settings' => array (
2049      'label' => array (
2050        'format' => 'above',
2051        'exclude' => 0,
2052      ),
2053      'teaser' => array (
2054        'format' => 'default',
2055        'exclude' => 0,
2056      ),
2057      'full' => array (
2058        'format' => 'default',
2059        'exclude' => 0,
2060      ),
2061      4 => array (
2062        'format' => 'default',
2063        'exclude' => 0,
2064      ),
2065      'inline' => array (
2066        'format' => 'default',
2067        'exclude' => 0,
2068      ),
2069      'modal' => array (
2070        'format' => 'default',
2071        'exclude' => 0,
2072      ),
2073      'token' => array (
2074        'format' => 'default',
2075        'exclude' => 0,
2076      ),
2077    ),
2078  );
2079  //Programacion anual por consumidor
2080  $content['fields'][] = array (
2081    'label' => 'Año',
2082    'type_name' => 'proyectos_operativos',
2083    'field_name' => 'field_progrmcn_anual_anho',
2084    'type' => 'date',
2085    'change' => 'Change basic information',
2086    'weight' => '35',
2087    'widget_active' => 1,
2088    'type' => 'date',
2089    'required' => 0,
2090    'multiple' => 0,
2091    'db_storage' => 1,
2092    'module' => 'date',
2093    'active' => 1,
2094    'locked' => 0,
2095    'columns' => array(
2096      'value' => array(
2097        'type' => 'varchar',
2098        'length' => 20,
2099        'not null' => '',
2100        'sortable' => 1,
2101        'views' => 1,
2102      ),
2103    ),
2104    'granularity' => array(
2105      'year' => 'year',
2106    ),
2107    'timezone_db' => '',
2108    'tz_handling' => 'none',
2109    'todate' => '',
2110    'repeat' => 0,
2111    'repeat_collapsed' => '',
2112    'default_format' => 'medium',
2113    'widget' => array(
2114      'default_value' => 'now',
2115      'default_value_code' => '',
2116      'default_value2' => 'same',
2117      'default_value_code2' => '',
2118      'input_format' => 'm/d/Y - H:i:s',
2119      'input_format_custom' => '',
2120      'increment' => 1,
2121      'text_parts' => array(),
2122      'year_range' => '-10:+10',
2123      'label_position' => 'above',
2124      'label' => 'Año',
2125      'weight' => 60,
2126      'description' => '',
2127      'type' => 'date_select',
2128      'module' => 'date',
2129    ),
2130    'display_settings' => array (
2131      'label' => array (
2132        'format' => 'above',
2133        'exclude' => 0,
2134      ),
2135      'teaser' => array (
2136        'format' => 'default',
2137        'exclude' => 0,
2138      ),
2139      'full' => array (
2140        'format' => 'default',
2141        'exclude' => 0,
2142      ),
2143      4 => array (
2144        'format' => 'default',
2145        'exclude' => 0,
2146      ),
2147      'inline' => array (
2148        'format' => 'default',
2149        'exclude' => 0,
2150      ),
2151      'modal' => array (
2152        'format' => 'default',
2153        'exclude' => 0,
2154      ),
2155      'token' => array (
2156        'format' => 'default',
2157        'exclude' => 0,
2158      ),
2159    ),
2160  );
2161  $content['fields'][] = array (
2162    'label' => 'Capacidad',
2163    'type_name' => 'proyectos_operativos',
2164    'field_name' => 'field_progrmcn_anual_cap',
2165    'type' => 'text',
2166    'widget_type' => 'text_textfield',
2167    'change' => 'Change basic information',
2168    'weight' => '34',
2169    'rows' => 5,
2170    'size' => '20',
2171    'description' => '',
2172    'default_value' => array (
2173      0 => array (
2174        'value' => '',
2175        '_error_element' => 'default_value_widget][field_progrmcn_anual_cap][0][value',
2176      ),
2177    ),
2178    'default_value_php' => '',
2179    'default_value_widget' => NULL,
2180    'required' => 0,
2181    'multiple' => 1,
2182    'text_processing' => '0',
2183    'max_length' => '20',
2184    'op' => 'Save field settings',
2185    'module' => 'text',
2186    'widget_module' => 'text',
2187    'columns' => array (
2188      'value' => array (
2189        'type' => 'varchar',
2190        'length' => '20',
2191        'not null' => false,
2192        'sortable' => true,
2193        'views' => true,
2194      ),
2195    ),
2196    'display_settings' => array (
2197      'label' => array (
2198        'format' => 'above',
2199        'exclude' => 0,
2200      ),
2201      'teaser' => array (
2202        'format' => 'default',
2203        'exclude' => 0,
2204      ),
2205      'full' => array (
2206        'format' => 'default',
2207        'exclude' => 0,
2208      ),
2209      4 => array (
2210        'format' => 'default',
2211        'exclude' => 0,
2212      ),
2213      'inline' => array (
2214        'format' => 'default',
2215        'exclude' => 0,
2216      ),
2217      'modal' => array (
2218        'format' => 'default',
2219        'exclude' => 0,
2220      ),
2221      'token' => array (
2222        'format' => 'default',
2223        'exclude' => 0,
2224      ),
2225    ),
2226  );
2227  //anadiendo el camo unidad de medida
2228  $content['fields'][] = array (
2229    'label' => 'Unidad de Medida',
2230    'type_name' => 'proyectos_operativos',
2231    'field_name' => 'field_progrmcn_anual_unid',
2232    'type' => 'text',
2233    'widget_type' => 'optionwidgets_select',
2234    'change' => 'Change basic information',
2235    'weight' => '33',
2236    'description' => '',
2237    'default_value' => array (
2238      0 => array (
2239        'value' => '0 ',
2240      ),
2241    ),
2242    'default_value_php' => '',
2243    'default_value_widget' => array (
2244      'field_progrmcn_anual_unid' => array (
2245        'value' => '0 ',
2246      ),
2247    ),
2248    'required' => 0,
2249    'multiple' => 1,
2250    'text_processing' => '0',
2251    'max_length' => '',
2252    'allowed_values' => '
2253      0| seleccione
2254      1| Coulimbio
2255      2| Julio
2256      3| Vatio
2257      4| Faradio
2258      5| Henrio
2259      6| Ohmio
2260      7| Voltio
2261      8| Hertz',
2262    'allowed_values_php' => '',
2263    'op' => 'Guardar configuraciones del campo',
2264    'module' => 'text',
2265    'widget_module' => 'optionwidgets',
2266    'columns' => array (
2267      'value' => array (
2268        'type' => 'text',
2269        'size' => 'big',
2270        'not null' => false,
2271        'sortable' => true,
2272        'views' => true,
2273      ),
2274    ),
2275    'display_settings' => array (
2276      'label' => array (
2277        'format' => 'above',
2278        'exclude' => 0,
2279      ),
2280      'teaser' => array (
2281        'format' => 'default',
2282        'exclude' => 0,
2283      ),
2284      'full' => array (
2285        'format' => 'default',
2286        'exclude' => 0,
2287      ),
2288      4 => array (
2289        'format' => 'default',
2290        'exclude' => 0,
2291      ),
2292      'modal' => array (
2293        'format' => 'default',
2294        'exclude' => 0,
2295      ),
2296      'inline' => array (
2297        'format' => 'default',
2298        'exclude' => 0,
2299      ),
2300      'token' => array (
2301        'format' => 'default',
2302        'exclude' => 0,
2303      ),
2304    ),
2305  );
2306  //anadiendo el programacion anual por productor
2307  $content['fields'][] = array (
2308    'label' => 'Tipo de Instalación',
2309    'type_name' => 'proyectos_operativos',
2310    'field_name' => 'field_progrmcn_anual_prog',
2311    'type' => 'text',
2312    'widget_type' => 'optionwidgets_select',
2313    'change' => 'Change basic information',
2314    'weight' => '28',
2315    'description' => '',
2316    'default_value' => array (
2317      0 => array (
2318        'value' => '0 ',
2319      ),
2320    ),
2321    'default_value_php' => '',
2322    'default_value_widget' => array (
2323      'field_progrmcn_anual_prog' => array (
2324        'value' => '0 ',
2325      ),
2326    ),
2327    'required' => 0,
2328    'multiple' => 1,
2329    'text_processing' => '0',
2330    'max_length' => '',
2331    'allowed_values' => '
2332      0| seleccione
2333      1| Refinería de petróleo
2334      2| Plata de gas
2335      3| Centrales hidroeléctricas
2336      4| Centrales termoeléctricas
2337      5| Residencal
2338      6| Comercial
2339      7| Transporte
2340      8| Industria
2341      9| Otros
2342      10| No aplica',
2343    'allowed_values_php' => '',
2344    'op' => 'Guardar configuraciones del campo',
2345    'module' => 'text',
2346    'widget_module' => 'optionwidgets',
2347    'columns' => array (
2348      'value' => array (
2349        'type' => 'text',
2350        'size' => 'big',
2351        'not null' => false,
2352        'sortable' => true,
2353        'views' => true,
2354      ),
2355    ),
2356    'display_settings' => array (
2357      'label' => array (
2358        'format' => 'above',
2359        'exclude' => 0,
2360      ),
2361      'teaser' => array (
2362        'format' => 'default',
2363        'exclude' => 0,
2364      ),
2365      'full' => array (
2366        'format' => 'default',
2367        'exclude' => 0,
2368      ),
2369      4 => array (
2370        'format' => 'default',
2371        'exclude' => 0,
2372      ),
2373      'modal' => array (
2374        'format' => 'default',
2375        'exclude' => 0,
2376      ),
2377      'inline' => array (
2378        'format' => 'default',
2379        'exclude' => 0,
2380      ),
2381      'token' => array (
2382        'format' => 'default',
2383        'exclude' => 0,
2384      ),
2385    ),
2386  );
2387  // campo Descripción del Proyecto
2388  $content['fields'][] = array (
2389    'label' => 'Descripción del Proyecto',
2390    'type_name' => 'proyectos_operativos',
2391    'field_name' => 'field_descripcin_proyect',
2392    'type' => 'text',
2393    'widget_type' => 'text_textarea',
2394    'change' => 'Change basic information',
2395    'weight' => '2',
2396    'rows' => '5',
2397    'size' => 60,
2398    'description' => '',
2399    'default_value' => array (
2400      0 => array (
2401        'value' => '',
2402        '_error_element' => 'default_value_widget][field_descripcin_proyect][0][value',
2403      ),
2404    ),
2405    'default_value_php' => '',
2406    'default_value_widget' => array (
2407      'field_proyecto_og' => array (
2408        0 => array (
2409          'value' => '',
2410          '_error_element' => 'default_value_widget][field_descripcin_proyect][0][value',
2411        ),
2412      ),
2413    ),
2414    'required' => 1,
2415    'multiple' => '0',
2416    'text_processing' => '0',
2417    'max_length' => '',
2418    'allowed_values' => '',
2419    'allowed_values_php' => '',
2420    'op' => 'Save field settings',
2421    'module' => 'text',
2422    'widget_module' => 'text',
2423    'columns' => array (
2424      'value' => array (
2425        'type' => 'text',
2426        'size' => 'big',
2427        'not null' => false,
2428        'sortable' => true,
2429        'views' => true,
2430      ),
2431    ),
2432    'display_settings' => array (
2433      'label' => array (
2434        'format' => 'above',
2435        'exclude' => 0,
2436      ),
2437      'teaser' => array (
2438        'format' => 'default',
2439        'exclude' => 0,
2440      ),
2441      'full' => array (
2442        'format' => 'default',
2443        'exclude' => 0,
2444      ),
2445      4 => array (
2446        'format' => 'default',
2447        'exclude' => 0,
2448      ),
2449      'inline' => array (
2450        'format' => 'default',
2451        'exclude' => 0,
2452      ),
2453      'modal' => array (
2454        'format' => 'default',
2455        'exclude' => 0,
2456      ),
2457      'token' => array (
2458        'format' => 'default',
2459        'exclude' => 0,
2460      ),
2461    ),
2462  );
2463  //definicion del campo los 5 grande temas
2464  $content['fields'][] = array (
2465    'label' => 'Cinco Grande temas',
2466    'type_name' => 'proyectos_operativos',
2467    'field_name' => 'field_proyecto_5grande_temas',
2468    'type' => 'content_taxonomy',
2469    'widget_type' => 'content_taxonomy_select',
2470    'change' => 'Change basic information',
2471    'weight' => '20',
2472    'show_depth' => 1,
2473    'group_parent' => '0',
2474    'description' => 'Seleccione el tema al que decea vincular el proyecto',
2475    'default_value' => array (
2476      0 => array (
2477        'value' => '',
2478      ),
2479    ),
2480    'default_value_php' => '',
2481    'default_value_widget' => array (
2482      'field_proyecto_5grande_temas' => array (
2483        'value' => '',
2484      ),
2485    ),
2486    'required' => 1,
2487    'multiple' => '0',
2488    'save_term_node' => 0,
2489    'vid' => variable_get('proyectos_operativos_5grandes_temas', 0),
2490    'parent' => '0',
2491    'parent_php_code' => '',
2492    'depth' => '',
2493    'op' => 'Save field settings',
2494    'module' => 'content_taxonomy',
2495    'widget_module' => 'content_taxonomy_options',
2496    'columns' => array (
2497      'value' => array (
2498        'type' => 'int',
2499        'not null' => false,
2500        'sortable' => false,
2501      ),
2502    ),
2503    'display_settings' => array (
2504      'label' => array (
2505        'format' => 'above',
2506        'exclude' => 0,
2507      ),
2508      'teaser' => array (
2509        'format' => 'default',
2510        'exclude' => 0,
2511      ),
2512      'full' => array (
2513        'format' => 'default',
2514        'exclude' => 0,
2515      ),
2516      4 => array (
2517        'format' => 'default',
2518        'exclude' => 0,
2519      ),
2520      'inline' => array (
2521        'format' => 'default',
2522        'exclude' => 0,
2523      ),
2524      'modal' => array (
2525        'format' => 'default',
2526        'exclude' => 0,
2527      ),
2528      'token' => array (
2529        'format' => 'default',
2530        'exclude' => 0,
2531      ),
2532    ),
2533  );
2534  //definiendo el campo ubicacion del proyecto
2535  $content['fields'][] = array (
2536    'label' => 'Localización del Proyecto',
2537    'type_name' => 'proyectos_operativos',
2538    'field_name' => 'field_proyecto_ubicaci_inter',
2539    'type' => 'content_taxonomy',
2540    'widget_type' => array(
2541      '#default_value' => 'content_taxonomy_hs',
2542    ),
2543    'widget' => array(
2544      'label' =>'Localización del Proyecto',
2545      'weight' => 2,
2546      'description' =>'',
2547      'type' => 'content_taxonomy_hs', 
2548      'module' => 'hs_content_taxonomy',
2549    ),
2550    'tids' => array(
2551      'config' => array(
2552        'level_labels' => array(
2553        'status' => 1,
2554        'labels' => array(
2555           0 => 'Estado',
2556           1 => 'Municipio',
2557           2 => 'Parroquia',
2558          ),
2559       ),
2560      ),
2561    ),
2562    'description' => 'Localización Internacional o Nacional del Proyecto',
2563    'change' => 'Change basic information',
2564    'weight' => '10',
2565    'show_depth' => 1,
2566    'group_parent' => '0',
2567    'default_value' => array (
2568      0 => array (
2569        'value' => '',
2570      ),
2571    ),
2572    'default_value_php' => '',
2573    'default_value_widget' => array (
2574      'field_proyecto_ubicaci_inter' => array (
2575        'value' => '',
2576      ),
2577    ),
2578    'required' => 1,
2579    'multiple' => '0',
2580    'save_term_node' => 0,
2581    'vid' => variable_get('proyectos_operativos_extra_entidad', 0),
2582    'parent' => '0',
2583    'parent_php_code' => '',
2584    'depth' => '',
2585    'op' => 'Save field settings',
2586    'module' => 'content_taxonomy',
2587    'widget_module' => 'content_taxonomy_options',
2588    'columns' => array (
2589      'value' => array (
2590        'type' => 'int',
2591        'not null' => false,
2592        'sortable' => false,
2593      ),
2594    ) ,
2595    'display_settings' => array (
2596      'label' => array (
2597        'format' => 'above',
2598        'exclude' => 0,
2599      ),
2600      'teaser' => array (
2601        'format' => 'hierarchical_text',
2602        'exclude' => 0,
2603      ),
2604      'full' => array (
2605        'format' => 'hierarchical_text',
2606        'exclude' => 0,
2607      ),
2608      4 => array (
2609        'format' => 'default',
2610        'exclude' => 0,
2611      ),
2612      'inline' => array (
2613        'format' => 'default',
2614        'exclude' => 0,
2615      ),
2616      'modal' => array (
2617        'format' => 'hierarchical_text',
2618        'exclude' => 0,
2619      ),
2620      'token' => array (
2621        'format' => 'default',
2622        'exclude' => 0,
2623      ),
2624    ),
2625  );
2626  //definiendo el campo codigo de ubicacion comunal
2627  $content['fields'][] = array (
2628    'label' => 'Código de la Comuna',
2629    'type_name' => 'proyectos_operativos',
2630    'field_name' => 'field_proyecto_codigo_comu',
2631    'type' => 'text',
2632    'widget_type' => 'text_textfield',
2633    'change' => 'Change basic information',
2634    'weight' => '2',
2635    'rows' => 5,
2636    'size' => '20',
2637    'description' => '',
2638    'default_value' => array (
2639      0 => array (
2640        'value' => '',
2641        '_error_element' => 'default_value_widget][field_proyecto_codigo_comu][0][value',
2642      ),
2643    ),
2644    'default_value_php' => '',
2645    'default_value_widget' => array (
2646      'field_proyecto_codigo_comu' => array (
2647        0 => array (
2648          'value' => '',
2649          '_error_element' => 'default_value_widget][field_proyecto_codigo_comu][0][value',
2650        ),
2651      ),
2652    ),
2653    'required' => 1,
2654    'multiple' => '0',
2655    'text_processing' => '0',
2656    'max_length' => '20',
2657    'allowed_values' => '',
2658    'allowed_values_php' => '',
2659    'op' => 'Save field settings',
2660    'module' => 'text',
2661    'widget_module' => 'text',
2662    'columns' => array (
2663      'value' => array (
2664        'type' => 'varchar',
2665        'length' => '20',
2666        'not null' => false,
2667        'sortable' => true,
2668        'views' => true,
2669      ),
2670    ),
2671    'display_settings' => array (
2672      'label' => array (
2673        'format' => 'above',
2674        'exclude' => 0,
2675      ),
2676      'teaser' => array (
2677        'format' => 'default',
2678        'exclude' => 0,
2679      ),
2680      'full' => array (
2681        'format' => 'default',
2682        'exclude' => 0,
2683      ),
2684      4 => array (
2685        'format' => 'default',
2686        'exclude' => 0,
2687      ),
2688      'inline' => array (
2689        'format' => 'default',
2690        'exclude' => 0,
2691      ),
2692      'modal' => array (
2693        'format' => 'default',
2694        'exclude' => 0,
2695      ),
2696      'token' => array (
2697        'format' => 'default',
2698        'exclude' => 0,
2699      ),
2700    ),
2701  );
2702  //definicion del Nombre de la Comuna
2703  $content['fields'][] = array (
2704    'label' => 'Nombre de la Comuna',
2705    'type_name' => 'proyectos_operativos',
2706    'field_name' => 'field_proyecto_nombres_cum',
2707    'type' => 'text',
2708    'widget_type' => 'text_textfield',
2709    'change' => 'Change basic information',
2710    'weight' => '45',
2711    'rows' => 5,
2712    'size' => '40',
2713    'description' => '',
2714    'default_value' => array (
2715      0 => array (
2716        'value' => '',
2717        '_error_element' => 'default_value_widget][field_proyecto_nombres_cum][0][value',
2718      ),
2719    ),
2720    'default_value_php' => '',
2721    'default_value_widget' => array (
2722      'field_proyecto_nombres_cum' => array (
2723        0 => array (
2724          'value' => '',
2725          '_error_element' => 'default_value_widget][field_proyecto_nombres_cum][0][value',
2726        ),
2727      ),
2728    ),
2729    'required' => 1,
2730    'multiple' => 0,
2731    'text_processing' => '0',
2732    'max_length' => '250',
2733    'allowed_values' => '',
2734    'allowed_values_php' => '',
2735    'op' => 'Save field settings',
2736    'module' => 'text',
2737    'widget_module' => 'text',
2738    'columns' => array (
2739      'value' => array (
2740        'type' => 'varchar',
2741        'length' => '250',
2742        'not null' => false,
2743        'sortable' => true,
2744        'views' => true,
2745      ),
2746    ),
2747    'display_settings' => array (
2748      'label' => array (
2749        'format' => 'above',
2750        'exclude' => 0,
2751      ),
2752      'teaser' => array (
2753        'format' => 'default',
2754        'exclude' => 0,
2755      ),
2756      'full' => array (
2757        'format' => 'default',
2758        'exclude' => 0,
2759      ),
2760      4 => array (
2761        'format' => 'default',
2762        'exclude' => 0,
2763      ),
2764      'inline' => array (
2765        'format' => 'default',
2766        'exclude' => 0,
2767      ),
2768      'modal' => array (
2769        'format' => 'default',
2770        'exclude' => 0,
2771      ),
2772      'token' => array (
2773        'format' => 'default',
2774        'exclude' => 0,
2775      ),
2776    ),
2777  );
2778  //definicion de la ubicacion de la comuna
2779  $terms = taxonomy_get_term_by_name('Venezuela');
2780  foreach($terms as $id => $term) {
2781    if (variable_get('proyectos_operativos_extra_entidad', 0) == $terms[$id]->vid) {
2782      $term = $terms[$id]->tid;
2783      break;
2784    }
2785  }
2786  $content['fields'][] = array (
2787    'label' => 'Ubicación de la Comuna',
2788    'type_name' => 'proyectos_operativos',
2789    'field_name' => 'field_proyecto_ubicaci_comu',
2790    'type' => 'content_taxonomy',
2791    'widget_type' => array(
2792      '#default_value' => 'content_taxonomy_hs',
2793    ),
2794    'widget' => array(
2795      'label' => 'Ubicación Comunal',
2796      'weight' => 2,
2797      'description' =>'',
2798      'type' => 'content_taxonomy_hs',
2799      'module' => 'hs_content_taxonomy',
2800    ),
2801    'description' => 'Ubicación Comunal del Proyecto',
2802    'change' => 'Change basic information',
2803    'weight' => '10',
2804    'show_depth' => 1,
2805    'group_parent' => '0',
2806    'default_value' => array (
2807      0 => array (
2808        'value' => '',
2809      ),
2810    ),
2811    'default_value_php' => '',
2812    'default_value_widget' => array (
2813      'field_proyecto_ubicaci_comu' => array (
2814        'value' => '',
2815      ),
2816    ),
2817    'required' => 1,
2818    'multiple' => '0',
2819    'save_term_node' => 0,
2820    'vid' => variable_get('proyectos_operativos_extra_entidad', 0),
2821    'parent' => $term, //venezuela es el papa
2822    'tids' => array(
2823      'config' => array(
2824        'level_labels' => array(
2825        'status' => 1,
2826        'labels' => array(
2827           0 => 'Estado',
2828           1 => 'Municipio',
2829           2 => 'Parroquia',
2830          ),
2831       ),
2832      ),
2833    ),
2834    'parent_php_code' => '',
2835    'depth' => '0',
2836    'op' => 'Save field settings',
2837    'module' => 'content_taxonomy',
2838    'columns' => array (
2839      'value' => array (
2840        'type' => 'int',
2841        'not null' => false,
2842        'sortable' => false,
2843      ),
2844    ) ,
2845    'display_settings' => array (
2846      'label' => array (
2847        'format' => 'above',
2848        'exclude' => 0,
2849      ),
2850      'teaser' => array (
2851        'format' => 'hierarchical_text',
2852        'exclude' => 0,
2853      ),
2854      'full' => array (
2855        'format' => 'hierarchical_text',
2856        'exclude' => 0,
2857      ),
2858      4 => array (
2859        'format' => 'default',
2860        'exclude' => 0,
2861      ),
2862      'inline' => array (
2863        'format' => 'default',
2864        'exclude' => 0,
2865      ),
2866      'modal' => array (
2867        'format' => 'hierarchical_text',
2868        'exclude' => 0,
2869      ),
2870      'token' => array (
2871        'format' => 'default',
2872        'exclude' => 0,
2873      ),
2874    ),
2875  );
2876  //fin de la definicion del campo ubicacion comunal
2877  $content['fields'][] = array (
2878    'label' => 'Nombre',
2879    'type_name' => 'proyectos_operativos',
2880    'field_name' => 'field_proyecto_nombre_gere',
2881    'type' => 'text',
2882    'widget_type' => 'text_textfield',
2883    'change' => 'Change basic information',
2884    'weight' => '45',
2885    'rows' => 5,
2886    'size' => '40',
2887    'description' => '',
2888    'default_value' => array (
2889      0 => array (
2890        'value' => '',
2891        '_error_element' => 'default_value_widget][field_proyecto_nombre_gere][0][value',
2892      ),
2893    ),
2894    'default_value_php' => '',
2895    'default_value_widget' => array (
2896      'field_proyecto_nombre_gere' => array (
2897        0 => array (
2898          'value' => '',
2899          '_error_element' => 'default_value_widget][field_proyecto_nombre_gere][0][value',
2900        ),
2901      ),
2902    ),
2903    'required' => 1,
2904    'multiple' => 0,
2905    'text_processing' => '0',
2906    'max_length' => '250',
2907    'allowed_values' => '',
2908    'allowed_values_php' => '',
2909    'op' => 'Save field settings',
2910    'module' => 'text',
2911    'widget_module' => 'text',
2912    'columns' => array (
2913      'value' => array (
2914        'type' => 'varchar',
2915        'length' => '250',
2916        'not null' => false,
2917        'sortable' => true,
2918        'views' => true,
2919      ),
2920    ),
2921    'display_settings' => array (
2922      'label' => array (
2923        'format' => 'above',
2924        'exclude' => 0,
2925      ),
2926      'teaser' => array (
2927        'format' => 'default',
2928        'exclude' => 0,
2929      ),
2930      'full' => array (
2931        'format' => 'default',
2932        'exclude' => 0,
2933      ),
2934      4 => array (
2935        'format' => 'default',
2936        'exclude' => 0,
2937      ),
2938      'inline' => array (
2939        'format' => 'default',
2940        'exclude' => 0,
2941      ),
2942      'modal' => array (
2943        'format' => 'default',
2944        'exclude' => 0,
2945      ),
2946      'token' => array (
2947        'format' => 'default',
2948        'exclude' => 0,
2949      ),
2950    ),
2951  );
2952  $content['fields'][] = array (
2953    'label' => 'Cedula de Identidad',
2954    'type_name' => 'proyectos_operativos',
2955    'field_name' => 'field_proyecto_cedul_gere',
2956    'type' => 'text',
2957    'widget_type' => 'text_textfield',
2958    'change' => 'Change basic information',
2959    'weight' => '45',
2960    'rows' => 5,
2961    'size' => '40',
2962    'description' => '',
2963    'default_value' => array (
2964      0 => array (
2965        'value' => '',
2966        '_error_element' => 'default_value_widget][field_proyecto_cedul_gere][0][value',
2967      ),
2968    ),
2969    'default_value_php' => '',
2970    'default_value_widget' => array (
2971      'field_proyecto_cedul_gere' => array (
2972        0 => array (
2973          'value' => '',
2974          '_error_element' => 'default_value_widget][field_proyecto_cedul_gere][0][value',
2975        ),
2976      ),
2977    ),
2978    'required' => 1,
2979    'multiple' => 0,
2980    'text_processing' => '0',
2981    'max_length' => '250',
2982    'allowed_values' => '',
2983    'allowed_values_php' => '',
2984    'op' => 'Save field settings',
2985    'module' => 'text',
2986    'widget_module' => 'text',
2987    'columns' => array (
2988      'value' => array (
2989        'type' => 'varchar',
2990        'length' => '250',
2991        'not null' => false,
2992        'sortable' => true,
2993        'views' => true,
2994      ),
2995    ),
2996    'display_settings' => array (
2997      'label' => array (
2998        'format' => 'above',
2999        'exclude' => 0,
3000      ),
3001      'teaser' => array (
3002        'format' => 'default',
3003        'exclude' => 0,
3004      ),
3005      'full' => array (
3006        'format' => 'default',
3007        'exclude' => 0,
3008      ),
3009      4 => array (
3010        'format' => 'default',
3011        'exclude' => 0,
3012      ),
3013      'inline' => array (
3014        'format' => 'default',
3015        'exclude' => 0,
3016      ),
3017      'modal' => array (
3018        'format' => 'default',
3019        'exclude' => 0,
3020      ),
3021      'token' => array (
3022        'format' => 'default',
3023        'exclude' => 0,
3024      ),
3025    ),
3026  );
3027  $content['fields'][] = array (
3028    'label' => 'Correo Electronico',
3029    'type_name' => 'proyectos_operativos',
3030    'field_name' => 'field_proyecto_corre_gere',
3031    'type' => 'email',
3032    'widget_type' => 'email_textfield',
3033    'change' => 'Change basic information',
3034    'weight' => '19',
3035    'size' => '40',
3036    'description' => '',
3037    'default_value' => array (
3038      0 => array (
3039        'email' => '',
3040      ),
3041    ),
3042    'default_value_php' => '',
3043    'default_value_widget' => array (
3044      'field_proyecto_corre_gere' => array (
3045        0 => array (
3046          'email' => '',
3047        ),
3048      ),
3049    ),
3050    'required' => 1,
3051    'multiple' => 0,
3052    'op' => 'Save field settings',
3053    'module' => 'email',
3054    'widget_module' => 'email',
3055    'columns' => array (
3056      'email' => array (
3057        'type' => 'varchar',
3058        'length' => 255,
3059        'not null' => false,
3060        'sortable' => true,
3061      ),
3062    ),
3063    'display_settings' => array (
3064      'label' => array (
3065        'format' => 'above',
3066        'exclude' => 0,
3067      ),
3068      'teaser' => array (
3069        'format' => 'default',
3070        'exclude' => 0,
3071      ),
3072      'full' => array (
3073        'format' => 'default',
3074        'exclude' => 0,
3075      ),
3076      4 => array (
3077        'format' => 'default',
3078        'exclude' => 0,
3079      ),
3080      'inline' => array (
3081        'format' => 'default',
3082        'exclude' => 0,
3083      ),
3084      'modal' => array (
3085        'format' => 'default',
3086        'exclude' => 0,
3087      ),
3088      'token' => array (
3089        'format' => 'default',
3090        'exclude' => 0,
3091      ),
3092    ),
3093  );
3094  $content['fields'][] = array (
3095    'label' => 'Numero Telefonico',
3096    'type_name' => 'proyectos_operativos',
3097    'field_name' => 'field_proyecto_telef_gere',
3098    'type' => 'text',
3099    'widget_type' => 'text_textfield',
3100    'change' => 'Change basic information',
3101    'weight' => '45',
3102    'rows' => 5,
3103    'size' => '40',
3104    'description' => '',
3105    'default_value' => array (
3106      0 => array (
3107        'value' => '',
3108        '_error_element' => 'default_value_widget][field_proyecto_telef_gere][0][value',
3109      ),
3110    ),
3111    'default_value_php' => '',
3112    'default_value_widget' => array (
3113      'field_proyecto_telef_gere' => array (
3114        0 => array (
3115          'value' => '',
3116          '_error_element' => 'default_value_widget][field_proyecto_telef_gere][0][value',
3117        ),
3118      ),
3119    ),
3120    'required' => 1,
3121    'multiple' => 0,
3122    'text_processing' => '0',
3123    'max_length' => '13',
3124    'allowed_values' => '',
3125    'allowed_values_php' => '',
3126    'op' => 'Save field settings',
3127    'module' => 'text',
3128    'widget_module' => 'text',
3129    'columns' => array (
3130      'value' => array (
3131        'type' => 'varchar',
3132        'length' => '250',
3133        'not null' => false,
3134        'sortable' => true,
3135        'views' => true,
3136      ),
3137    ),
3138    'display_settings' => array (
3139      'label' => array (
3140        'format' => 'above',
3141        'exclude' => 0,
3142      ),
3143      'teaser' => array (
3144        'format' => 'default',
3145        'exclude' => 0,
3146      ),
3147      'full' => array (
3148        'format' => 'default',
3149        'exclude' => 0,
3150      ),
3151      4 => array (
3152        'format' => 'default',
3153        'exclude' => 0,
3154      ),
3155      'inline' => array (
3156        'format' => 'default',
3157        'exclude' => 0,
3158      ),
3159      'modal' => array (
3160        'format' => 'default',
3161        'exclude' => 0,
3162      ),
3163      'token' => array (
3164        'format' => 'default',
3165        'exclude' => 0,
3166      ),
3167    ),
3168  );
3169  //campos responsable tecnicos
3170  $content['fields'][] = array (
3171    'label' => 'Nombre',
3172    'type_name' => 'proyectos_operativos',
3173    'field_name' => 'field_proyecto_nom_r_tec',
3174    'type' => 'text',
3175    'widget_type' => 'text_textfield',
3176    'change' => 'Change basic information',
3177    'weight' => '45',
3178    'rows' => 5,
3179    'size' => '40',
3180    'description' => '',
3181    'default_value' => array (
3182      0 => array (
3183        'value' => '',
3184        '_error_element' => 'default_value_widget][field_proyecto_nom_r_tec][0][value',
3185      ),
3186    ),
3187    'default_value_php' => '',
3188    'default_value_widget' => array (
3189      'field_proyecto_nom_r_tec' => array (
3190        0 => array (
3191          'value' => '',
3192          '_error_element' => 'default_value_widget][field_proyecto_nom_r_tec][0][value',
3193        ),
3194      ),
3195    ),
3196    'required' => 1,
3197    'multiple' => 0,
3198    'text_processing' => '0',
3199    'max_length' => '250',
3200    'allowed_values' => '',
3201    'allowed_values_php' => '',
3202    'op' => 'Save field settings',
3203    'module' => 'text',
3204    'widget_module' => 'text',
3205    'columns' => array (
3206      'value' => array (
3207        'type' => 'varchar',
3208        'length' => '250',
3209        'not null' => false,
3210        'sortable' => true,
3211        'views' => true,
3212      ),
3213    ),
3214    'display_settings' => array (
3215      'label' => array (
3216        'format' => 'above',
3217        'exclude' => 0,
3218      ),
3219      'teaser' => array (
3220        'format' => 'default',
3221        'exclude' => 0,
3222      ),
3223      'full' => array (
3224        'format' => 'default',
3225        'exclude' => 0,
3226      ),
3227      4 => array (
3228        'format' => 'default',
3229        'exclude' => 0,
3230      ),
3231      'inline' => array (
3232        'format' => 'default',
3233        'exclude' => 0,
3234      ),
3235      'modal' => array (
3236        'format' => 'default',
3237        'exclude' => 0,
3238      ),
3239      'token' => array (
3240        'format' => 'default',
3241        'exclude' => 0,
3242      ),
3243    ),
3244  );
3245  $content['fields'][] = array (
3246    'label' => 'Cedula de Identidad',
3247    'type_name' => 'proyectos_operativos',
3248    'field_name' => 'field_proyecto_ced_r_tec',
3249    'type' => 'text',
3250    'widget_type' => 'text_textfield',
3251    'change' => 'Change basic information',
3252    'weight' => '45',
3253    'rows' => 5,
3254    'size' => '40',
3255    'description' => '',
3256    'default_value' => array (
3257      0 => array (
3258        'value' => '',
3259        '_error_element' => 'default_value_widget][field_proyecto_ced_r_tec][0][value',
3260      ),
3261    ),
3262    'default_value_php' => '',
3263    'default_value_widget' => array (
3264      'field_proyecto_ced_r_tec' => array (
3265        0 => array (
3266          'value' => '',
3267          '_error_element' => 'default_value_widget][field_proyecto_ced_r_tec][0][value',
3268        ),
3269      ),
3270    ),
3271    'required' => 1,
3272    'multiple' => 0,
3273    'text_processing' => '0',
3274    'max_length' => '250',
3275    'allowed_values' => '',
3276    'allowed_values_php' => '',
3277    'op' => 'Save field settings',
3278    'module' => 'text',
3279    'widget_module' => 'text',
3280    'columns' => array (
3281      'value' => array (
3282        'type' => 'varchar',
3283        'length' => '250',
3284        'not null' => false,
3285        'sortable' => true,
3286        'views' => true,
3287      ),
3288    ),
3289    'display_settings' => array (
3290      'label' => array (
3291        'format' => 'above',
3292        'exclude' => 0,
3293      ),
3294      'teaser' => array (
3295        'format' => 'default',
3296        'exclude' => 0,
3297      ),
3298      'full' => array (
3299        'format' => 'default',
3300        'exclude' => 0,
3301      ),
3302      4 => array (
3303        'format' => 'default',
3304        'exclude' => 0,
3305      ),
3306      'inline' => array (
3307        'format' => 'default',
3308        'exclude' => 0,
3309      ),
3310      'modal' => array (
3311        'format' => 'default',
3312        'exclude' => 0,
3313      ),
3314      'token' => array (
3315        'format' => 'default',
3316        'exclude' => 0,
3317      ),
3318    ),
3319  );
3320  $content['fields'][] = array (
3321    'label' => 'Correo Electronico',
3322    'type_name' => 'proyectos_operativos',
3323    'field_name' => 'field_proyecto_cor_r_tec',
3324    'type' => 'email',
3325    'widget_type' => 'email_textfield',
3326    'change' => 'Change basic information',
3327    'weight' => '19',
3328    'size' => '40',
3329    'description' => '',
3330    'default_value' => array (
3331      0 => array (
3332        'email' => '',
3333      ),
3334    ),
3335    'default_value_php' => '',
3336    'default_value_widget' => array (
3337      'field_proyecto_cor_r_tec' => array (
3338        0 => array (
3339          'email' => '',
3340        ),
3341      ),
3342    ),
3343    'required' => 1,
3344    'multiple' => 0,
3345    'op' => 'Save field settings',
3346    'module' => 'email',
3347    'widget_module' => 'email',
3348    'columns' => array (
3349      'email' => array (
3350        'type' => 'varchar',
3351        'length' => 255,
3352        'not null' => false,
3353        'sortable' => true,
3354      ),
3355    ),
3356    'display_settings' => array (
3357      'label' => array (
3358        'format' => 'above',
3359        'exclude' => 0,
3360      ),
3361      'teaser' => array (
3362        'format' => 'default',
3363        'exclude' => 0,
3364      ),
3365      'full' => array (
3366        'format' => 'default',
3367        'exclude' => 0,
3368      ),
3369      4 => array (
3370        'format' => 'default',
3371        'exclude' => 0,
3372      ),
3373      'inline' => array (
3374        'format' => 'default',
3375        'exclude' => 0,
3376      ),
3377      'modal' => array (
3378        'format' => 'default',
3379        'exclude' => 0,
3380      ),
3381      'token' => array (
3382        'format' => 'default',
3383        'exclude' => 0,
3384      ),
3385    ),
3386  );
3387  $content['fields'][] = array (
3388    'label' => 'Numero Telefonico',
3389    'type_name' => 'proyectos_operativos',
3390    'field_name' => 'field_proyecto_tel_r_tec',
3391    'type' => 'text',
3392    'widget_type' => 'text_textfield',
3393    'change' => 'Change basic information',
3394    'weight' => '45',
3395    'rows' => 5,
3396    'size' => '40',
3397    'description' => '',
3398    'default_value' => array (
3399      0 => array (
3400        'value' => '',
3401        '_error_element' => 'default_value_widget][field_proyecto_tel_r_tec][0][value',
3402      ),
3403    ),
3404    'default_value_php' => '',
3405    'default_value_widget' => array (
3406      'field_proyecto_tel_r_tec' => array (
3407        0 => array (
3408          'value' => '',
3409          '_error_element' => 'default_value_widget][field_proyecto_tel_r_tec][0][value',
3410        ),
3411      ),
3412    ),
3413    'required' => 1,
3414    'multiple' => 0,
3415    'text_processing' => '0',
3416    'max_length' => '13',
3417    'allowed_values' => '',
3418    'allowed_values_php' => '',
3419    'op' => 'Save field settings',
3420    'module' => 'text',
3421    'widget_module' => 'text',
3422    'columns' => array (
3423      'value' => array (
3424        'type' => 'varchar',
3425        'length' => '250',
3426        'not null' => false,
3427        'sortable' => true,
3428        'views' => true,
3429      ),
3430    ),
3431    'display_settings' => array (
3432      'label' => array (
3433        'format' => 'above',
3434        'exclude' => 0,
3435      ),
3436      'teaser' => array (
3437        'format' => 'default',
3438        'exclude' => 0,
3439      ),
3440      'full' => array (
3441        'format' => 'default',
3442        'exclude' => 0,
3443      ),
3444      4 => array (
3445        'format' => 'default',
3446        'exclude' => 0,
3447      ),
3448      'inline' => array (
3449        'format' => 'default',
3450        'exclude' => 0,
3451      ),
3452      'modal' => array (
3453        'format' => 'default',
3454        'exclude' => 0,
3455      ),
3456      'token' => array (
3457        'format' => 'default',
3458        'exclude' => 0,
3459      ),
3460    ),
3461  );
3462  $content['fields'][] = array (
3463    'label' => 'Unidad Tecnica',
3464    'type_name' => 'proyectos_operativos',
3465    'field_name' => 'field_proyecto_und_r_tec',
3466    'type' => 'text',
3467    'widget_type' => 'text_textfield',
3468    'change' => 'Change basic information',
3469    'weight' => '45',
3470    'rows' => 5,
3471    'size' => '40',
3472    'description' => '',
3473    'default_value' => array (
3474      0 => array (
3475        'value' => '',
3476        '_error_element' => 'default_value_widget][field_proyecto_und_r_tec][0][value',
3477      ),
3478    ),
3479    'default_value_php' => '',
3480    'default_value_widget' => array (
3481      'field_proyecto_und_r_tec' => array (
3482        0 => array (
3483          'value' => '',
3484          '_error_element' => 'default_value_widget][field_proyecto_und_r_tec][0][value',
3485        ),
3486      ),
3487    ),
3488    'required' => 1,
3489    'multiple' => 0,
3490    'text_processing' => '0',
3491    'max_length' => '250',
3492    'allowed_values' => '',
3493    'allowed_values_php' => '',
3494    'op' => 'Save field settings',
3495    'module' => 'text',
3496    'widget_module' => 'text',
3497    'columns' => array (
3498      'value' => array (
3499        'type' => 'varchar',
3500        'length' => '250',
3501        'not null' => false,
3502        'sortable' => true,
3503        'views' => true,
3504      ),
3505    ),
3506    'display_settings' => array (
3507      'label' => array (
3508        'format' => 'above',
3509        'exclude' => 0,
3510      ),
3511      'teaser' => array (
3512        'format' => 'default',
3513        'exclude' => 0,
3514      ),
3515      'full' => array (
3516        'format' => 'default',
3517        'exclude' => 0,
3518      ),
3519      4 => array (
3520        'format' => 'default',
3521        'exclude' => 0,
3522      ),
3523      'inline' => array (
3524        'format' => 'default',
3525        'exclude' => 0,
3526      ),
3527      'modal' => array (
3528        'format' => 'default',
3529        'exclude' => 0,
3530      ),
3531      'token' => array (
3532        'format' => 'default',
3533        'exclude' => 0,
3534      ),
3535    ),
3536  );
3537  //campos responsable resgistrador
3538  $content['fields'][] = array (
3539    'label' => 'Nombre',
3540    'type_name' => 'proyectos_operativos',
3541    'field_name' => 'field_proyecto_nom_r_reg',
3542    'type' => 'text',
3543    'widget_type' => 'text_textfield',
3544    'change' => 'Change basic information',
3545    'weight' => '45',
3546    'rows' => 5,
3547    'size' => '40',
3548    'description' => '',
3549    'default_value' => array (
3550      0 => array (
3551        'value' => '',
3552        '_error_element' => 'default_value_widget][field_proyecto_nom_r_reg][0][value',
3553      ),
3554    ),
3555    'default_value_php' => '',
3556    'default_value_widget' => array (
3557      'field_proyecto_nom_r_reg' => array (
3558        0 => array (
3559          'value' => '',
3560          '_error_element' => 'default_value_widget][field_proyecto_nom_r_reg][0][value',
3561        ),
3562      ),
3563    ),
3564    'required' => 1,
3565    'multiple' =>0,
3566    'text_processing' => '0',
3567    'max_length' => '250',
3568    'allowed_values' => '',
3569    'allowed_values_php' => '',
3570    'op' => 'Save field settings',
3571    'module' => 'text',
3572    'widget_module' => 'text',
3573    'columns' => array (
3574      'value' => array (
3575        'type' => 'varchar',
3576        'length' => '250',
3577        'not null' => false,
3578        'sortable' => true,
3579        'views' => true,
3580      ),
3581    ),
3582    'display_settings' => array (
3583      'label' => array (
3584        'format' => 'above',
3585        'exclude' => 0,
3586      ),
3587      'teaser' => array (
3588        'format' => 'default',
3589        'exclude' => 0,
3590      ),
3591      'full' => array (
3592        'format' => 'default',
3593        'exclude' => 0,
3594      ),
3595      4 => array (
3596        'format' => 'default',
3597        'exclude' => 0,
3598      ),
3599      'inline' => array (
3600        'format' => 'default',
3601        'exclude' => 0,
3602      ),
3603      'modal' => array (
3604        'format' => 'default',
3605        'exclude' => 0,
3606      ),
3607      'token' => array (
3608        'format' => 'default',
3609        'exclude' => 0,
3610      ),
3611    ),
3612  );
3613  $content['fields'][] = array (
3614    'label' => 'Cedula de Identidad',
3615    'type_name' => 'proyectos_operativos',
3616    'field_name' => 'field_proyecto_ced_r_reg',
3617    'type' => 'text',
3618    'widget_type' => 'text_textfield',
3619    'change' => 'Change basic information',
3620    'weight' => '45',
3621    'rows' => 5,
3622    'size' => '40',
3623    'description' => '',
3624    'default_value' => array (
3625      0 => array (
3626        'value' => '',
3627        '_error_element' => 'default_value_widget][field_proyecto_ced_r_reg][0][value',
3628      ),
3629    ),
3630    'default_value_php' => '',
3631    'default_value_widget' => array (
3632      'field_proyecto_ced_r_reg' => array (
3633        0 => array (
3634          'value' => '',
3635          '_error_element' => 'default_value_widget][field_proyecto_ced_r_reg][0][value',
3636        ),
3637      ),
3638    ),
3639    'required' => 1,
3640    'multiple' => 0,
3641    'text_processing' => '0',
3642    'max_length' => '250',
3643    'allowed_values' => '',
3644    'allowed_values_php' => '',
3645    'op' => 'Save field settings',
3646    'module' => 'text',
3647    'widget_module' => 'text',
3648    'columns' => array (
3649      'value' => array (
3650        'type' => 'varchar',
3651        'length' => '250',
3652        'not null' => false,
3653        'sortable' => true,
3654        'views' => true,
3655      ),
3656    ),
3657    'display_settings' => array (
3658      'label' => array (
3659        'format' => 'above',
3660        'exclude' => 0,
3661      ),
3662      'teaser' => array (
3663        'format' => 'default',
3664        'exclude' => 0,
3665      ),
3666      'full' => array (
3667        'format' => 'default',
3668        'exclude' => 0,
3669      ),
3670      4 => array (
3671        'format' => 'default',
3672        'exclude' => 0,
3673      ),
3674      'inline' => array (
3675        'format' => 'default',
3676        'exclude' => 0,
3677      ),
3678      'modal' => array (
3679        'format' => 'default',
3680        'exclude' => 0,
3681      ),
3682      'token' => array (
3683        'format' => 'default',
3684        'exclude' => 0,
3685      ),
3686    ),
3687  );
3688  $content['fields'][] = array (
3689    'label' => 'Correo Electronico',
3690    'type_name' => 'proyectos_operativos',
3691    'field_name' => 'field_proyecto_cor_r_reg',
3692    'type' => 'email',
3693    'widget_type' => 'email_textfield',
3694    'change' => 'Change basic information',
3695    'weight' => '19',
3696    'size' => '40',
3697    'description' => '',
3698    'default_value' => array (
3699      0 => array (
3700        'email' => '',
3701      ),
3702    ),
3703    'default_value_php' => '',
3704    'default_value_widget' => array (
3705      'field_proyecto_cor_r_reg' => array (
3706        0 => array (
3707          'email' => '',
3708        ),
3709      ),
3710    ),
3711    'required' => 1,
3712    'multiple' => 0,
3713    'op' => 'Save field settings',
3714    'module' => 'email',
3715    'widget_module' => 'email',
3716    'columns' =>
3717    array (
3718      'email' =>
3719      array (
3720        'type' => 'varchar',
3721        'length' => 255,
3722        'not null' => false,
3723        'sortable' => true,
3724      ),
3725    ),
3726    'display_settings' => array (
3727      'label' => array (
3728        'format' => 'above',
3729        'exclude' => 0,
3730      ),
3731      'teaser' => array (
3732        'format' => 'default',
3733        'exclude' => 0,
3734      ),
3735      'full' => array (
3736        'format' => 'default',
3737        'exclude' => 0,
3738      ),
3739      4 => array (
3740        'format' => 'default',
3741        'exclude' => 0,
3742      ),
3743      'inline' => array (
3744        'format' => 'default',
3745        'exclude' => 0,
3746      ),
3747      'modal' => array (
3748        'format' => 'default',
3749        'exclude' => 0,
3750      ),
3751      'token' => array (
3752        'format' => 'default',
3753        'exclude' => 0,
3754      ),
3755    ),
3756  );
3757  $content['fields'][] = array (
3758    'label' => 'Numero Telefonico',
3759    'type_name' => 'proyectos_operativos',
3760    'field_name' => 'field_proyecto_tel_r_reg',
3761    'type' => 'text',
3762    'widget_type' => 'text_textfield',
3763    'change' => 'Change basic information',
3764    'weight' => '45',
3765    'rows' => 5,
3766    'size' => '40',
3767    'description' => '',
3768    'default_value' => array (
3769      0 => array (
3770        'value' => '',
3771        '_error_element' => 'default_value_widget][field_proyecto_tel_r_reg][0][value',
3772      ),
3773    ),
3774    'default_value_php' => '',
3775    'default_value_widget' => array (
3776      'field_proyecto_tel_r_reg' => array (
3777        0 => array (
3778          'value' => '',
3779          '_error_element' => 'default_value_widget][field_proyecto_tel_r_reg][0][value',
3780        ),
3781      ),
3782    ),
3783    'required' => 1,
3784    'multiple' => 0,
3785    'text_processing' => '0',
3786    'max_length' => '13',
3787    'allowed_values' => '',
3788    'allowed_values_php' => '',
3789    'op' => 'Save field settings',
3790    'module' => 'text',
3791    'widget_module' => 'text',
3792    'columns' => array (
3793      'value' => array (
3794        'type' => 'varchar',
3795        'length' => '250',
3796        'not null' => false,
3797        'sortable' => true,
3798        'views' => true,
3799      ),
3800    ),
3801    'display_settings' => array (
3802      'label' => array (
3803        'format' => 'above',
3804        'exclude' => 0,
3805      ),
3806      'teaser' => array (
3807        'format' => 'default',
3808        'exclude' => 0,
3809      ),
3810      'full' => array (
3811        'format' => 'default',
3812        'exclude' => 0,
3813      ),
3814      4 => array (
3815        'format' => 'default',
3816        'exclude' => 0,
3817      ),
3818      'inline' => array (
3819        'format' => 'default',
3820        'exclude' => 0,
3821      ),
3822      'modal' => array (
3823        'format' => 'default',
3824        'exclude' => 0,
3825      ),
3826      'token' => array (
3827        'format' => 'default',
3828        'exclude' => 0,
3829      ),
3830    ),
3831  );
3832  // campos responsable administrativo
3833  $content['fields'][] = array (
3834    'label' => 'Nombre',
3835    'type_name' => 'proyectos_operativos',
3836    'field_name' => 'field_proyecto_nom_r_adm',
3837    'type' => 'text',
3838    'widget_type' => 'text_textfield',
3839    'change' => 'Change basic information',
3840    'weight' => '45',
3841    'rows' => 5,
3842    'size' => '40',
3843    'description' => '',
3844    'default_value' => array (
3845      0 => array (
3846        'value' => '',
3847        '_error_element' => 'default_value_widget][field_proyecto_nom_r_adm][0][value',
3848      ),
3849    ),
3850    'default_value_php' => '',
3851    'default_value_widget' => array (
3852      'field_proyecto_nom_r_adm' => array (
3853        0 => array (
3854          'value' => '',
3855          '_error_element' => 'default_value_widget][field_proyecto_nom_r_adm][0][value',
3856        ),
3857      ),
3858    ),
3859    'required' => 1,
3860    'multiple' => 0,
3861    'text_processing' => '0',
3862    'max_length' => '250',
3863    'allowed_values' => '',
3864    'allowed_values_php' => '',
3865    'op' => 'Save field settings',
3866    'module' => 'text',
3867    'widget_module' => 'text',
3868    'columns' => array (
3869      'value' => array (
3870        'type' => 'varchar',
3871        'length' => '250',
3872        'not null' => false,
3873        'sortable' => true,
3874        'views' => true,
3875      ),
3876    ),
3877    'display_settings' => array (
3878      'label' => array (
3879        'format' => 'above',
3880        'exclude' => 0,
3881      ),
3882      'teaser' => array (
3883        'format' => 'default',
3884        'exclude' => 0,
3885      ),
3886      'full' => array (
3887        'format' => 'default',
3888        'exclude' => 0,
3889      ),
3890      4 => array (
3891        'format' => 'default',
3892        'exclude' => 0,
3893      ),
3894      'inline' => array (
3895        'format' => 'default',
3896        'exclude' => 0,
3897      ),
3898      'modal' => array (
3899        'format' => 'default',
3900        'exclude' => 0,
3901      ),
3902      'token' => array (
3903        'format' => 'default',
3904        'exclude' => 0,
3905      ),
3906    ),
3907  );
3908  $content['fields'][] = array (
3909    'label' => 'Cedula de Identidad',
3910    'type_name' => 'proyectos_operativos',
3911    'field_name' => 'field_proyecto_ced_r_adm',
3912    'type' => 'text',
3913    'widget_type' => 'text_textfield',
3914    'change' => 'Change basic information',
3915    'weight' => '45',
3916    'rows' => 5,
3917    'size' => '40',
3918    'description' => '',
3919    'default_value' => array (
3920      0 => array (
3921        'value' => '',
3922        '_error_element' => 'default_value_widget][field_proyecto_ced_r_adm][0][value',
3923      ),
3924    ),
3925    'default_value_php' => '',
3926    'default_value_widget' => array (
3927      'field_proyecto_ced_r_adm' => array (
3928        0 => array (
3929          'value' => '',
3930          '_error_element' => 'default_value_widget][field_proyecto_ced_r_adm][0][value',
3931        ),
3932      ),
3933    ),
3934    'required' => 1,
3935    'multiple' => 0,
3936    'text_processing' => '0',
3937    'max_length' => '250',
3938    'allowed_values' => '',
3939    'allowed_values_php' => '',
3940    'op' => 'Save field settings',
3941    'module' => 'text',
3942    'widget_module' => 'text',
3943    'columns' => array (
3944      'value' => array (
3945        'type' => 'varchar',
3946        'length' => '250',
3947        'not null' => false,
3948        'sortable' => true,
3949        'views' => true,
3950      ),
3951    ),
3952    'display_settings' => array (
3953      'label' => array (
3954        'format' => 'above',
3955        'exclude' => 0,
3956      ),
3957      'teaser' => array (
3958        'format' => 'default',
3959        'exclude' => 0,
3960      ),
3961      'full' => array (
3962        'format' => 'default',
3963        'exclude' => 0,
3964      ),
3965      4 => array (
3966        'format' => 'default',
3967        'exclude' => 0,
3968      ),
3969      'inline' => array (
3970        'format' => 'default',
3971        'exclude' => 0,
3972      ),
3973      'modal' => array (
3974        'format' => 'default',
3975        'exclude' => 0,
3976      ),
3977      'token' => array (
3978        'format' => 'default',
3979        'exclude' => 0,
3980      ),
3981    ),
3982  );
3983  $content['fields'][] = array (
3984    'label' => 'Correo Electronico',
3985    'type_name' => 'proyectos_operativos',
3986    'field_name' => 'field_proyecto_cor_r_adm',   
3987    'type' => 'email',
3988    'widget_type' => 'email_textfield',
3989    'change' => 'Change basic information',
3990    'weight' => '19',
3991    'size' => '40',
3992    'description' => '',
3993    'default_value' => array (
3994      0 => array (
3995        'email' => '',
3996      ),
3997    ),
3998    'default_value_php' => '',
3999    'default_value_widget' => array (
4000      'field_proyecto_cor_r_adm' => array (
4001        0 => array (
4002          'email' => '',
4003        ),
4004      ),
4005    ),
4006    'required' => 1,
4007    'multiple' => 0,
4008    'text_processing' => '0',
4009    'max_length' => '250',
4010    'allowed_values' => '',
4011    'allowed_values_php' => '',
4012    'op' => 'Save field settings',
4013    'module' => 'email',
4014    'widget_module' => 'email',
4015    'columns' => array (
4016      'value' => array (
4017        'type' => 'varchar',
4018        'length' => '250',
4019        'not null' => false,
4020        'sortable' => true,
4021        'views' => true,
4022      ),
4023    ),
4024    'display_settings' => array (
4025      'label' => array (
4026        'format' => 'above',
4027        'exclude' => 0,
4028      ),
4029      'teaser' => array (
4030        'format' => 'default',
4031        'exclude' => 0,
4032      ),
4033      'full' => array (
4034        'format' => 'default',
4035        'exclude' => 0,
4036      ),
4037      4 => array (
4038        'format' => 'default',
4039        'exclude' => 0,
4040      ),
4041      'inline' => array (
4042        'format' => 'default',
4043        'exclude' => 0,
4044      ),
4045      'modal' => array (
4046        'format' => 'default',
4047        'exclude' => 0,
4048      ),
4049      'token' => array (
4050        'format' => 'default',
4051        'exclude' => 0,
4052      ),
4053    ),
4054  );
4055  $content['fields'][] = array (
4056    'label' => 'Numero Telefónico',
4057    'type_name' => 'proyectos_operativos',
4058    'field_name' => 'field_proyecto_tel_r_adm',
4059    'type' => 'text',
4060    'widget_type' => 'text_textfield',
4061    'change' => 'Change basic information',
4062    'weight' => '45',
4063    'rows' => 5,
4064    'size' => '40',
4065    'description' => '',
4066    'default_value' => array (
4067      0 => array (
4068        'value' => '',
4069        '_error_element' => 'default_value_widget][field_proyecto_tel_r_adm][0][value',
4070      ),
4071    ),
4072    'default_value_php' => '',
4073    'default_value_widget' => array (
4074      'field_proyecto_tel_r_adm' => array (
4075        0 => array (
4076          'value' => '',
4077          '_error_element' => 'default_value_widget][field_proyecto_tel_r_adm][0][value',
4078        ),
4079      ),
4080    ),
4081    'required' => 1,
4082    'multiple' => 0,
4083    'text_processing' => '0',
4084    'max_length' => '13',
4085    'allowed_values' => '',
4086    'allowed_values_php' => '',
4087    'op' => 'Save field settings',
4088    'module' => 'text',
4089    'widget_module' => 'text',
4090    'columns' => array (
4091      'value' => array (
4092        'type' => 'varchar',
4093        'length' => '250',
4094        'not null' => false,
4095        'sortable' => true,
4096        'views' => true,
4097      ),
4098    ),
4099    'display_settings' => array (
4100      'label' => array (
4101        'format' => 'above',
4102        'exclude' => 0,
4103      ),
4104      'teaser' => array (
4105        'format' => 'default',
4106        'exclude' => 0,
4107      ),
4108      'full' => array (
4109        'format' => 'default',
4110        'exclude' => 0,
4111      ),
4112      4 => array (
4113        'format' => 'default',
4114        'exclude' => 0,
4115      ),
4116      'inline' => array (
4117        'format' => 'default',
4118        'exclude' => 0,
4119      ),
4120      'modal' => array (
4121        'format' => 'default',
4122        'exclude' => 0,
4123      ),
4124      'token' => array (
4125        'format' => 'default',
4126        'exclude' => 0,
4127      ),
4128    ),
4129  );
4130  $content['fields'][] = array (
4131    'label' => 'Unidad administradora',
4132    'type_name' => 'proyectos_operativos',
4133    'field_name' => 'field_proyecto_und_r_adm',
4134    'type' => 'text',
4135    'widget_type' => 'text_textfield',
4136    'change' => 'Change basic information',
4137    'weight' => '45',
4138    'rows' => 5,
4139    'size' => '40',
4140    'description' => '',
4141    'default_value' => array (
4142      0 => array (
4143        'value' => '',
4144        '_error_element' => 'default_value_widget][field_proyecto_und_r_adm][0][value',
4145      ),
4146    ),
4147    'default_value_php' => '',
4148    'default_value_widget' => array (
4149      'field_proyecto_und_r_adm' => array (
4150        0 => array (
4151          'value' => '',
4152          '_error_element' => 'default_value_widget][field_proyecto_und_r_adm][0][value',
4153        ),
4154      ),
4155    ),
4156    'required' => 1,
4157    'multiple' => 0,
4158    'text_processing' => '0',
4159    'max_length' => '250',
4160    'allowed_values' => '',
4161    'allowed_values_php' => '',
4162    'op' => 'Save field settings',
4163    'module' => 'text',
4164    'widget_module' => 'text',
4165    'columns' => array (
4166      'value' => array (
4167        'type' => 'varchar',
4168        'length' => '250',
4169        'not null' => false,
4170        'sortable' => true,
4171        'views' => true,
4172      ),
4173    ),
4174    'display_settings' => array (
4175      'label' => array (
4176        'format' => 'above',
4177        'exclude' => 0,
4178      ),
4179      'teaser' => array (
4180        'format' => 'default',
4181        'exclude' => 0,
4182      ),
4183      'full' => array (
4184        'format' => 'default',
4185        'exclude' => 0,
4186      ),
4187      4 => array (
4188        'format' => 'default',
4189        'exclude' => 0,
4190      ),
4191      'inline' => array (
4192        'format' => 'default',
4193        'exclude' => 0,
4194      ),
4195      'modal' => array (
4196        'format' => 'default',
4197        'exclude' => 0,
4198      ),
4199      'token' => array (
4200        'format' => 'default',
4201        'exclude' => 0,
4202      ),
4203    ),
4204  );
4205  //campo problemas que se abordan con el proyecto
4206  $content['fields'][] = array (
4207    'label' => 'Problemas que se abordan con el Proyecto',
4208    'type_name' => 'proyectos_operativos',
4209    'field_name' => 'field_proyect_probl_abord',
4210    'type' => 'text',
4211    'widget_type' => 'text_textarea',
4212    'change' => 'Change basic information',
4213    'weight' => '37',
4214    'rows' => '5',
4215    'size' => 60,
4216    'description' => '',
4217    'default_value' => array (
4218      0 => array (
4219        'value' => '',
4220        '_error_element' => 'default_value_widget][field_proyect_probl_abord][0][value',
4221      ),
4222    ),
4223    'default_value_php' => '',
4224    'default_value_widget' => array (
4225      'field_proyect_probl_abord' => array (
4226        0 => array (
4227          'value' => '',
4228          '_error_element' => 'default_value_widget][field_proyect_probl_abord][0][value',
4229        ),
4230      ),
4231    ),
4232    'required' => 0,
4233    'multiple' => '0',
4234    'text_processing' => '0',
4235    'max_length' => '',
4236    'op' => 'Save field settings',
4237    'module' => 'text',
4238    'widget_module' => 'text',
4239    'columns' => array (
4240      'value' => array (
4241        'type' => 'text',
4242        'size' => 'big',
4243        'not null' => false,
4244        'sortable' => true,
4245        'views' => true,
4246      ),
4247    ),
4248    'display_settings' => array (
4249      'label' => array (
4250        'format' => 'above',
4251        'exclude' => 0,
4252      ),
4253      'teaser' => array (
4254        'format' => 'default',
4255        'exclude' => 0,
4256      ),
4257      'full' => array (
4258        'format' => 'default',
4259        'exclude' => 0,
4260      ),
4261      4 => array (
4262        'format' => 'default',
4263        'exclude' => 0,
4264      ),
4265      'inline' => array (
4266        'format' => 'default',
4267        'exclude' => 0,
4268      ),
4269      'modal' => array (
4270        'format' => 'default',
4271        'exclude' => 0,
4272      ),
4273      'token' => array (
4274        'format' => 'default',
4275        'exclude' => 0,
4276      ),
4277    ),
4278  );
4279  //campo Causas que se abordan con el proyecto
4280  $content['fields'][] = array (
4281    'label' => 'Causas que se abordan con el Proyecto',
4282    'type_name' => 'proyectos_operativos',
4283    'field_name' => 'field_proyect_cau_abord',
4284    'type' => 'text',
4285    'widget_type' => 'text_textarea',
4286    'change' => 'Change basic information',
4287    'weight' => '37',
4288    'rows' => '5',
4289    'size' => 60,
4290    'description' => '',
4291    'default_value' => array (
4292      0 => array (
4293        'value' => '',
4294        '_error_element' => 'default_value_widget][field_proyect_cau_abord][0][value',
4295      ),
4296    ),
4297    'default_value_php' => '',
4298    'default_value_widget' => array (
4299      'field_proyect_cau_abord' => array (
4300        0 => array (
4301          'value' => '',
4302          '_error_element' => 'default_value_widget][field_proyect_cau_abord][0][value',
4303        ),
4304      ),
4305    ),
4306    'required' => 0,
4307    'multiple' => '0',
4308    'text_processing' => '0',
4309    'max_length' => '',
4310    'op' => 'Save field settings',
4311    'module' => 'text',
4312    'widget_module' => 'text',
4313    'columns' => array (
4314      'value' => array (
4315        'type' => 'text',
4316        'size' => 'big',
4317        'not null' => false,
4318        'sortable' => true,
4319        'views' => true,
4320      ),
4321    ),
4322    'display_settings' => array (
4323      'label' => array (
4324        'format' => 'above',
4325        'exclude' => 0,
4326      ),
4327      'teaser' => array (
4328        'format' => 'default',
4329        'exclude' => 0,
4330      ),
4331      'full' => array (
4332        'format' => 'default',
4333        'exclude' => 0,
4334      ),
4335      4 => array (
4336        'format' => 'default',
4337        'exclude' => 0,
4338      ),
4339      'inline' => array (
4340        'format' => 'default',
4341        'exclude' => 0,
4342      ),
4343      'modal' => array (
4344        'format' => 'default',
4345        'exclude' => 0,
4346      ),
4347      'token' => array (
4348        'format' => 'default',
4349        'exclude' => 0,
4350      ),
4351    ),
4352  );
4353  return $content;
4354 }
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.