'Enlace Revisor', ); proyectos_operativos_mcti_create_permisos($rol); content_notify('install', 'proyectos_operativos_mcti'); } /* * Implementation of hook_enable() */ function proyectos_operativos_mcti_enable() { // Notify content module when this module is uninstalled.ent_notify('enable', 'proyectos_operativos'); include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc'); _proyectos_operativos_mcti_install_type_create_field(); } /* * _proyectos_operativos_mcti_install_type_create_field * Crear los tipos de contenidos necesarios para el funcionamiento del modulo */ function _proyectos_operativos_mcti_install_type_create_field() { // Load fields. $proyectos_operativos_fields = _proyectos_operativos_mcti_load_fields(); $create_field = FALSE; if (count($proyectos_operativos_fields['fields'])) { foreach ($proyectos_operativos_fields['fields'] as $proyectos_operativos_inserts) { $instances = content_field_instance_read(array( 'field_name' => $proyectos_operativos_inserts['field_name'], 'type_name' => $proyectos_operativos_inserts['type_name'] )); if (count($instances) < 1) { // Only add the field if it doesn't exist. Don't overwrite any changes. $field_create = content_field_instance_create($proyectos_operativos_inserts, FALSE); drupal_set_message(t("Saved field %typefield in content type %typecontent", array('%typefield' => $proyectos_operativos_inserts['label'], '%typecontent' => $proyectos_operativos_inserts['type_name']))); } } } } /* * Implementation of hook_uninstall */ function proyectos_operativos_mcti_uninstall() { drupal_uninstall_schema('proyectos_operativos_mcti'); content_notify('uninstall', 'proyectos_operativos_mcti'); include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc'); _proyectos_operativos_mcti_install_type_remove_field(); } /* * Elimina los campos que proporciona el modulo */ function _proyectos_operativos_mcti_install_type_remove_field() { // Load fields. $proyectos_operativos_fields = _proyectos_operativos_mcti_load_fields(); $remove_field = FALSE; if (count($proyectos_operativos_fields['fields'])) { foreach ($proyectos_operativos_fields['fields'] as $proyectos_operativos_inserts) { $instances = content_field_instance_read(array( 'field_name' => $proyectos_operativos_inserts['field_name'], 'type_name' => $proyectos_operativos_inserts['type_name'] )); if (count($instances)) { // Only add the field if it doesn't exist. Don't overwrite any changes. content_field_instance_delete($proyectos_operativos_inserts['field_name'], $proyectos_operativos_inserts['type_name']); drupal_set_message(t("Removed field %typefield in content type %typecontent", array('%typefield' => $proyectos_operativos_inserts['label'], '%typecontent' => $proyectos_operativos_inserts['type_name']))); } } } } /* * Implementation of hook_schema */ function proyectos_operativos_mcti_schema() { $schema['proyectos_operativos_asignados'] = array( 'description' => 'Proyectos operativos asignados.', 'fields' => array( 'nid_node' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'uid_users' => array( 'description' => 'Uid del usuario al que fue asignado el proyecto.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), ), 'indexes' => array( 'nid_node' => array('nid_node'), 'uid_users' => array('uid_users'), ), 'primary key' => array('nid_node'), ); return $schema; } /* * Crea los permisos por rol */ function proyectos_operativos_mcti_create_permisos($roles) { $permisos = array( 0 => 'review proyectos operativos', ); foreach($roles as $rol) { $role = proyectos_operativos_mcti_get_role($rol); if($role) { $permissions = $permisos; // Check to see if there are existing permissions db_query("INSERT INTO {permission} (rid, perm, tid) VALUES (%d, '%s', 0)", $role->rid, implode(', ', $permissions), 0); } } } /* * Elimina un rol y sus permisos */ function proyectos_operativos_mcti_delete_role($role_name) { // Look up the role to see if it exists already $role = proyectos_operativos_mcti_get_role($role_name); if ($role) { db_query('DELETE FROM {role} WHERE rid = %d', $role->rid); db_query('DELETE FROM {permission} WHERE rid = %d', $role->rid); // Update the users who have this role set: db_query('DELETE FROM {users_roles} WHERE rid = %d', $role->rid); return $role; } return FALSE; } /* * Consulta un rol */ function proyectos_operativos_mcti_get_role($role_name) { $role = db_fetch_object(db_query("SELECT * FROM {role} r WHERE r.name = '%s'", $role_name)); return $role; } /* * _proyectos_operativos_load_fields * Crear los tipos de contenidos necesarios para el funcionamiento del modulo */ function _proyectos_operativos_mcti_load_fields() { $content = array(); $content['fields'] = array(); //definicion del campo plan sectorial $content['fields'][] = array ( 'label' => 'Plan Sectorial', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_plan_sectorial', 'type' => 'content_taxonomy', 'widget_type' => 'content_taxonomy_select', 'change' => 'Change basic information', 'weight' => '20', 'show_depth' => 1, 'group_parent' => '0', 'description' => 'Plan Sectorial', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_plan_sectorial' => array ( 'value' => '', ), ), 'required' => 1, 'multiple' => '0', 'save_term_node' => 0, 'vid' => variable_get('ente_planificador_sector_Ambitos', 0), 'parent' => '0', 'parent_php_code' => '', 'depth' => '', 'op' => 'Save field settings', 'module' => 'content_taxonomy', 'widget_module' => 'content_taxonomy_options', 'columns' => array ( 'value' => array ( 'type' => 'int', 'not null' => false, 'sortable' => false, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //definicion del campo plan de la patria $content['fields'][] = array ( 'label' => 'Plan de la Patria', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_plan_de_la_patria', 'type' => 'content_taxonomy', 'widget_type' => 'content_taxonomy_select', 'change' => 'Change basic information', 'weight' => '20', 'show_depth' => 1, 'group_parent' => '0', 'description' => 'Vinculación con el Plan de la Patria', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_plan_sectorial' => array ( 'value' => '', ), ), 'required' => 1, 'multiple' => '0', 'save_term_node' => 0, 'vid' => variable_get('proyectos_operativos_pdlp1', 0), 'parent' => '0', 'parent_php_code' => '', 'depth' => '', 'op' => 'Save field settings', 'module' => 'content_taxonomy', 'widget_module' => 'content_taxonomy_options', 'columns' => array ( 'value' => array ( 'type' => 'int', 'not null' => false, 'sortable' => false, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo tipo de impacto $content['fields'][] = array ( 'label' => 'Por factor biótico y abiótico', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_tipo_factores', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '36', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_causa_posible' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Agua 2| Aire 3| Suelo 4| Flora 5| Fauna 6| Sónico 7| No aplica 8| Multifactorial', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //campo cuales son esos impactos Multifactorial $content['fields'][] = array ( 'label' => 'Impacto Multifactorial', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_impact_multifc', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Change basic information', 'weight' => '37', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_factor_impact_multifc][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_impact_multifc' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_factor_impact_multifc][0][value', ), ), ), 'required' => 0, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo segun su origen $content['fields'][] = array ( 'label' => 'Según su origén', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_segun_origen', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '39', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_causa_posible' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Aprovechamiento de recursos naturales 2| Contaminación 3| Ocupación del territorio 4| Multiorigen 5| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //campo cuales son esos impactos Multiorigen $content['fields'][] = array ( 'label' => 'Impacto Multiorigen', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_impact_multiog', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Change basic information', 'weight' => '40', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_factor_impact_multiog][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_impact_multiog' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_factor_impact_multiog][0][value', ), ), ), 'required' => 0, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo naturaleza $content['fields'][] = array ( 'label' => 'Naturaleza', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_naturaleza', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '28', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_causa_posible' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Beneficioso 2| Perfudicial 3| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo intensidad $content['fields'][] = array ( 'label' => 'Intensidad', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_intensidad', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '29', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_causa_posible' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Baja 2| Media 3| Alta 4| Muy Alta 5| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo extension $content['fields'][] = array ( 'label' => 'Extensión', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_extension', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '30', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_causa_posible' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Puntual 2| Parcial 3| Extenso 4| Total 5| Crítico 6| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo extension $content['fields'][] = array ( 'label' => 'Momento', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_momento', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '31', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_momento' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Largo Plazo 2| Mediano Plazo 3| Inmediato 4| Crítico 5| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo persistencia $content['fields'][] = array ( 'label' => 'Persistencia', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_persistencia', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '32', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_persistencia' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Fugaz 2| Temporal 3| Permanente 4| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo reversibilidad $content['fields'][] = array ( 'label' => 'Reversibilidad', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_reversibilidad', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '33', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_reversibilidad' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Corto Plazo 2| Mediano Plazo 3| Irreversible 4| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo sinergismo $content['fields'][] = array ( 'label' => 'Sinergismo', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_sinergismo', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '34', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_sinergismo' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Sin sinergismo 2| Sinérgico 3| Muy Sinérgico 4| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo acumulación $content['fields'][] = array ( 'label' => 'Acumulación', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_acumulacion', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '35', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_acumulacion' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Simple 2| Acumulativo 3| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo relacion causa-efecto $content['fields'][] = array ( 'label' => 'Relación causa-efecto', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_relacion', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '36', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_relacion' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Indirecto 2| Directo 3| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el programacion anual por productor $content['fields'][] = array ( 'label' => 'Tipo de Instalación', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_balnc_progrmn_anu', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '28', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_balnc_progrmn_anu' => array ( 'value' => '0 ', ), ), 'required' => 0, 'multiple' => 1, 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Refinería de petróleo 2| Plata de gas 3| Centrales hidroeléctricas 4| Centrales termoeléctricas 5| Residencial 6| Comercial 7| Transporte 8| Industria 9| Otros 10| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el programacion anual por productor $content['fields'][] = array ( 'label' => 'Fuente', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_balance_fuente', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '29', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_balance_fuente' => array ( 'value' => '0 ', ), ), 'required' => 0, 'multiple' => 1, 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Energía primaria 2| Energía secundaria', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo tipo de fuente $content['fields'][] = array ( 'label' => 'Tipo de Fuente', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_balanc_tipofuent', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '30', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_balanc_tipofuent' => array ( 'value' => '0 ', ), ), 'required' => 0, 'multiple' => 1, 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Petróleo 2| Hidro energía 3| Gas Natural 4| Carbono 5| Biomasa 6| Energía solar 7| Energía nuclear 8| Energía del viento 9| Leña', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el camo tipo de producto $content['fields'][] = array ( 'label' => 'Tipo de Producto', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_balanc_tipoProd', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '31', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_balanc_tipoProd' => array ( 'value' => '0 ', ), ), 'required' => 0, 'multiple' => 1, 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Petróleo 2| Hidro energía 3| Gas Natural 4| Carbono 5| Biomasa 6| Energía solar 7| Energía nuclear 8| Energía del viento 9| Leña', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el camo unidad de medida $content['fields'][] = array ( 'label' => 'Unidad de Medida', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_balanc_unidMed', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '31', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_balanc_unidMed' => array ( 'value' => '0 ', ), ), 'required' => 0, 'multiple' => 1, 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Coulimbio 2| Julio 3| Vatio 4| Faradio 5| Henrio 6| Ohmio 7| Voltio 8| Hertz', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Capacidad', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_balanc_capacid', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '32', 'rows' => 5, 'size' => '20', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_balanc_capacid][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => NULL, 'required' => 0, 'multiple' => 1, 'text_processing' => '0', 'max_length' => '20', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '20', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Año', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_balanc_anho', 'type' => 'date', 'change' => 'Change basic information', 'weight' => '35', 'widget_active' => 1, 'type' => 'date', 'required' => 0, 'multiple' => 0, 'db_storage' => 1, 'module' => 'date', 'active' => 1, 'locked' => 0, 'columns' => array( 'value' => array( 'type' => 'varchar', 'length' => 20, 'not null' => '', 'sortable' => 1, 'views' => 1, ), ), 'granularity' => array( 'year' => 'year', ), 'timezone_db' => '', 'tz_handling' => 'none', 'todate' => '', 'repeat' => 0, 'repeat_collapsed' => '', 'default_format' => 'medium', 'widget' => array( 'default_value' => 'now', 'default_value_code' => '', 'default_value2' => 'same', 'default_value_code2' => '', 'input_format' => 'm/d/Y - H:i:s', 'input_format_custom' => '', 'increment' => 1, 'text_parts' => array(), 'year_range' => '-10:+10', 'label_position' => 'above', 'label' => 'Año', 'weight' => 60, 'description' => '', 'type' => 'date_select', 'module' => 'date', ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo recuperabilidad $content['fields'][] = array ( 'label' => 'Recuperabilidad', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_recuperabilidad', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '37', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_recuperabilidad' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Inmediata 2| Mediano Plazo 3| Mitigable 4| Irrecuperable 5| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el campo importancia $content['fields'][] = array ( 'label' => 'Importancia', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_importancia', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '38', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_importancia' => array ( 'value' => '0 ', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Irrelevante 2| Moderado 3| Severo 4| Crítico 5| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //campo medidas para mitigar o eliminar los impactos ambientales de este proyecto $content['fields'][] = array ( 'label' => '¿Cuales serán las medidas para mitigar o eliminar los impactos ambientales de este proyecto?', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_factor_medids_impact', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Change basic information', 'weight' => '39', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_factor_medids_impact][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_factor_medids_impact' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_factor_medids_impact][0][value', ), ), ), 'required' => 0, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //Programacion anual por consumidor $content['fields'][] = array ( 'label' => 'Año', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_progrmcn_anual_anho', 'type' => 'date', 'change' => 'Change basic information', 'weight' => '35', 'widget_active' => 1, 'type' => 'date', 'required' => 0, 'multiple' => 0, 'db_storage' => 1, 'module' => 'date', 'active' => 1, 'locked' => 0, 'columns' => array( 'value' => array( 'type' => 'varchar', 'length' => 20, 'not null' => '', 'sortable' => 1, 'views' => 1, ), ), 'granularity' => array( 'year' => 'year', ), 'timezone_db' => '', 'tz_handling' => 'none', 'todate' => '', 'repeat' => 0, 'repeat_collapsed' => '', 'default_format' => 'medium', 'widget' => array( 'default_value' => 'now', 'default_value_code' => '', 'default_value2' => 'same', 'default_value_code2' => '', 'input_format' => 'm/d/Y - H:i:s', 'input_format_custom' => '', 'increment' => 1, 'text_parts' => array(), 'year_range' => '-10:+10', 'label_position' => 'above', 'label' => 'Año', 'weight' => 60, 'description' => '', 'type' => 'date_select', 'module' => 'date', ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Capacidad', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_progrmcn_anual_cap', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '34', 'rows' => 5, 'size' => '20', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_progrmcn_anual_cap][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => NULL, 'required' => 0, 'multiple' => 1, 'text_processing' => '0', 'max_length' => '20', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '20', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el camo unidad de medida $content['fields'][] = array ( 'label' => 'Unidad de Medida', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_progrmcn_anual_unid', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '33', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_progrmcn_anual_unid' => array ( 'value' => '0 ', ), ), 'required' => 0, 'multiple' => 1, 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Coulimbio 2| Julio 3| Vatio 4| Faradio 5| Henrio 6| Ohmio 7| Voltio 8| Hertz', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //anadiendo el programacion anual por productor $content['fields'][] = array ( 'label' => 'Tipo de Instalación', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_progrmcn_anual_prog', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '28', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '0 ', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_progrmcn_anual_prog' => array ( 'value' => '0 ', ), ), 'required' => 0, 'multiple' => 1, 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| seleccione 1| Refinería de petróleo 2| Plata de gas 3| Centrales hidroeléctricas 4| Centrales termoeléctricas 5| Residencal 6| Comercial 7| Transporte 8| Industria 9| Otros 10| No aplica', 'allowed_values_php' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); // campo Descripción del Proyecto $content['fields'][] = array ( 'label' => 'Descripción del Proyecto', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_descripcin_proyect', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Change basic information', 'weight' => '2', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_descripcin_proyect][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_og' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_descripcin_proyect][0][value', ), ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //definicion del campo los 5 grande temas $content['fields'][] = array ( 'label' => 'Cinco Grande temas', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_5grande_temas', 'type' => 'content_taxonomy', 'widget_type' => 'content_taxonomy_select', 'change' => 'Change basic information', 'weight' => '20', 'show_depth' => 1, 'group_parent' => '0', 'description' => 'Seleccione el tema al que decea vincular el proyecto', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_5grande_temas' => array ( 'value' => '', ), ), 'required' => 1, 'multiple' => '0', 'save_term_node' => 0, 'vid' => variable_get('proyectos_operativos_5grandes_temas', 0), 'parent' => '0', 'parent_php_code' => '', 'depth' => '', 'op' => 'Save field settings', 'module' => 'content_taxonomy', 'widget_module' => 'content_taxonomy_options', 'columns' => array ( 'value' => array ( 'type' => 'int', 'not null' => false, 'sortable' => false, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //definiendo el campo ubicacion del proyecto $content['fields'][] = array ( 'label' => 'Localización del Proyecto', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_ubicaci_inter', 'type' => 'content_taxonomy', 'widget_type' => array( '#default_value' => 'content_taxonomy_hs', ), 'widget' => array( 'label' =>'Localización del Proyecto', 'weight' => 2, 'description' =>'', 'type' => 'content_taxonomy_hs', 'module' => 'hs_content_taxonomy', ), 'tids' => array( 'config' => array( 'level_labels' => array( 'status' => 1, 'labels' => array( 0 => 'Estado', 1 => 'Municipio', 2 => 'Parroquia', ), ), ), ), 'description' => 'Localización Internacional o Nacional del Proyecto', 'change' => 'Change basic information', 'weight' => '10', 'show_depth' => 1, 'group_parent' => '0', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_ubicaci_inter' => array ( 'value' => '', ), ), 'required' => 1, 'multiple' => '0', 'save_term_node' => 0, 'vid' => variable_get('proyectos_operativos_extra_entidad', 0), 'parent' => '0', 'parent_php_code' => '', 'depth' => '', 'op' => 'Save field settings', 'module' => 'content_taxonomy', 'widget_module' => 'content_taxonomy_options', 'columns' => array ( 'value' => array ( 'type' => 'int', 'not null' => false, 'sortable' => false, ), ) , 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'hierarchical_text', 'exclude' => 0, ), 'full' => array ( 'format' => 'hierarchical_text', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'hierarchical_text', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //definiendo el campo codigo de ubicacion comunal $content['fields'][] = array ( 'label' => 'Código de la Comuna', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_codigo_comu', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '2', 'rows' => 5, 'size' => '20', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_codigo_comu][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_codigo_comu' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_codigo_comu][0][value', ), ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '20', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '20', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //definicion del Nombre de la Comuna $content['fields'][] = array ( 'label' => 'Nombre de la Comuna', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_nombres_cum', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nombres_cum][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_nombres_cum' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nombres_cum][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //definicion de la ubicacion de la comuna $terms = taxonomy_get_term_by_name('Venezuela'); foreach($terms as $id => $term) { if (variable_get('proyectos_operativos_extra_entidad', 0) == $terms[$id]->vid) { $term = $terms[$id]->tid; break; } } $content['fields'][] = array ( 'label' => 'Ubicación de la Comuna', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_ubicaci_comu', 'type' => 'content_taxonomy', 'widget_type' => array( '#default_value' => 'content_taxonomy_hs', ), 'widget' => array( 'label' => 'Ubicación Comunal', 'weight' => 2, 'description' =>'', 'type' => 'content_taxonomy_hs', 'module' => 'hs_content_taxonomy', ), 'description' => 'Ubicación Comunal del Proyecto', 'change' => 'Change basic information', 'weight' => '10', 'show_depth' => 1, 'group_parent' => '0', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_ubicaci_comu' => array ( 'value' => '', ), ), 'required' => 1, 'multiple' => '0', 'save_term_node' => 0, 'vid' => variable_get('proyectos_operativos_extra_entidad', 0), 'parent' => $term, //venezuela es el papa 'tids' => array( 'config' => array( 'level_labels' => array( 'status' => 1, 'labels' => array( 0 => 'Estado', 1 => 'Municipio', 2 => 'Parroquia', ), ), ), ), 'parent_php_code' => '', 'depth' => '0', 'op' => 'Save field settings', 'module' => 'content_taxonomy', 'columns' => array ( 'value' => array ( 'type' => 'int', 'not null' => false, 'sortable' => false, ), ) , 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'hierarchical_text', 'exclude' => 0, ), 'full' => array ( 'format' => 'hierarchical_text', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'hierarchical_text', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //fin de la definicion del campo ubicacion comunal $content['fields'][] = array ( 'label' => 'Nombre', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_nombre_gere', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nombre_gere][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_nombre_gere' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nombre_gere][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Cedula de Identidad', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_cedul_gere', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_cedul_gere][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_cedul_gere' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_cedul_gere][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Correo Electronico', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_corre_gere', 'type' => 'email', 'widget_type' => 'email_textfield', 'change' => 'Change basic information', 'weight' => '19', 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'email' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_corre_gere' => array ( 0 => array ( 'email' => '', ), ), ), 'required' => 1, 'multiple' => 0, 'op' => 'Save field settings', 'module' => 'email', 'widget_module' => 'email', 'columns' => array ( 'email' => array ( 'type' => 'varchar', 'length' => 255, 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Numero Telefonico', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_telef_gere', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_telef_gere][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_telef_gere' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_telef_gere][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '13', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //campos responsable tecnicos $content['fields'][] = array ( 'label' => 'Nombre', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_nom_r_tec', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nom_r_tec][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_nom_r_tec' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nom_r_tec][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Cedula de Identidad', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_ced_r_tec', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_ced_r_tec][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_ced_r_tec' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_ced_r_tec][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Correo Electronico', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_cor_r_tec', 'type' => 'email', 'widget_type' => 'email_textfield', 'change' => 'Change basic information', 'weight' => '19', 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'email' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_cor_r_tec' => array ( 0 => array ( 'email' => '', ), ), ), 'required' => 1, 'multiple' => 0, 'op' => 'Save field settings', 'module' => 'email', 'widget_module' => 'email', 'columns' => array ( 'email' => array ( 'type' => 'varchar', 'length' => 255, 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Numero Telefonico', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_tel_r_tec', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_tel_r_tec][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_tel_r_tec' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_tel_r_tec][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '13', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Unidad Tecnica', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_und_r_tec', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_und_r_tec][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_und_r_tec' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_und_r_tec][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //campos responsable resgistrador $content['fields'][] = array ( 'label' => 'Nombre', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_nom_r_reg', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nom_r_reg][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_nom_r_reg' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nom_r_reg][0][value', ), ), ), 'required' => 1, 'multiple' =>0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Cedula de Identidad', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_ced_r_reg', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_ced_r_reg][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_ced_r_reg' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_ced_r_reg][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Correo Electronico', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_cor_r_reg', 'type' => 'email', 'widget_type' => 'email_textfield', 'change' => 'Change basic information', 'weight' => '19', 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'email' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_cor_r_reg' => array ( 0 => array ( 'email' => '', ), ), ), 'required' => 1, 'multiple' => 0, 'op' => 'Save field settings', 'module' => 'email', 'widget_module' => 'email', 'columns' => array ( 'email' => array ( 'type' => 'varchar', 'length' => 255, 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Numero Telefonico', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_tel_r_reg', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_tel_r_reg][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_tel_r_reg' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_tel_r_reg][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '13', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); // campos responsable administrativo $content['fields'][] = array ( 'label' => 'Nombre', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_nom_r_adm', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nom_r_adm][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_nom_r_adm' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_nom_r_adm][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Cedula de Identidad', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_ced_r_adm', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_ced_r_adm][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_ced_r_adm' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_ced_r_adm][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Correo Electronico', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_cor_r_adm', 'type' => 'email', 'widget_type' => 'email_textfield', 'change' => 'Change basic information', 'weight' => '19', 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'email' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_cor_r_adm' => array ( 0 => array ( 'email' => '', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'email', 'widget_module' => 'email', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Numero Telefónico', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_tel_r_adm', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_tel_r_adm][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_tel_r_adm' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_tel_r_adm][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '13', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); $content['fields'][] = array ( 'label' => 'Unidad administradora', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyecto_und_r_adm', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Change basic information', 'weight' => '45', 'rows' => 5, 'size' => '40', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_und_r_adm][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyecto_und_r_adm' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyecto_und_r_adm][0][value', ), ), ), 'required' => 1, 'multiple' => 0, 'text_processing' => '0', 'max_length' => '250', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '250', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //campo problemas que se abordan con el proyecto $content['fields'][] = array ( 'label' => 'Problemas que se abordan con el Proyecto', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyect_probl_abord', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Change basic information', 'weight' => '37', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyect_probl_abord][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyect_probl_abord' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyect_probl_abord][0][value', ), ), ), 'required' => 0, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); //campo Causas que se abordan con el proyecto $content['fields'][] = array ( 'label' => 'Causas que se abordan con el Proyecto', 'type_name' => 'proyectos_operativos', 'field_name' => 'field_proyect_cau_abord', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Change basic information', 'weight' => '37', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyect_cau_abord][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_proyect_cau_abord' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_proyect_cau_abord][0][value', ), ), ), 'required' => 0, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'op' => 'Save field settings', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 'inline' => array ( 'format' => 'default', 'exclude' => 0, ), 'modal' => array ( 'format' => 'default', 'exclude' => 0, ), 'token' => array ( 'format' => 'default', 'exclude' => 0, ), ), ); return $content; }