'Ente planificador.', 'fields' => array( 'nid' => array( 'description' => 'el nid de la politica.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'vid' => array( 'description' => 'el vid de la politica.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'delta' => array( 'description' => 'el delta del requerimiento.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'requerimiento' => array( 'description' => 'Nombre del requerimiento.', 'type' => 'varchar', 'length' => 250, 'not null' => TRUE, 'default' => '', ), 'tipo' => array( 'description' => 'Tipo de requerimiento.', 'type' => 'varchar', 'length' => 1, 'not null' => TRUE, 'default' => '', ), ), 'indexes' => array( 'nid' => array('nid'), 'nid_vid' => array('nid', 'vid'), ), ); $schema['politicas_ente_actor'] = array( 'description' => 'Ente planificador.', 'fields' => array( 'nid' => array( 'description' => 'el nid de la politica.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'vid' => array( 'description' => 'el vid de la politica.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'delta' => array( 'description' => 'el delta del requerimiento.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0, ), 'delta1' => array( 'description' => 'el delta del ente requerimiento.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0, ), 'ente' => array( 'description' => 'el delta del ente requerimiento.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0, ), 'otro_ente' => array( 'description' => 'Nombre del requerimiento.', 'type' => 'varchar', 'length' => 250, 'not null' => TRUE, 'default' => '', ), 'grado' => array( 'description' => 'Grado.', 'type' => 'float', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0, ), ), 'indexes' => array( 'nid' => array('nid'), 'nid_vid' => array('nid', 'vid'), ), ); $schema['politicas_direccionales_estrategias'] = array( 'description' => 'Politicas direccionales estrategias.', 'fields' => array( 'ente' => array( 'description' => 'el nid de la politica.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estrategia' => array( 'description' => 'el vid de la politica.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'ente_art' => array( 'description' => 'el delta del requerimiento.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0, ), 'estrategia_art' => array( 'description' => 'el delta del ente requerimiento.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0, ), 'creacion' => array( 'description' => 'el delta del ente requerimiento.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0, ), 'mensaje' => array( 'type' => 'text', 'size' => 'big', 'not null' => TRUE, 'default' => '', ), ), 'indexes' => array( 'ente' => array('ente'), 'ente' => array('estrategia'), 'ente_estrategia' => array('ente', 'estrategia'), 'ente_art' => array('ente_art'), 'estrategia_art' => array('estrategia_art'), 'ente_art_estrategia_art' => array('ente_art', 'estrategia_art'), 'creacion' => array('creacion'), ), ); return $schema; } /* * Implementation of hook_enable() */ function politicas_direccionales_enable() { // Notify content module when this module is uninstalled. drupal_load('module', 'content'); content_notify('enable', 'politicas_direccionales'); include_once('./'. drupal_get_path('module', 'content') .'/includes/content.crud.inc'); _politicas_direccionales_install_type_create_field(); } /* * Implementation of hook_disable() */ function politicas_direccionales_preliminar_disable() { drupal_load('module', 'content'); content_notify('disable', 'politicas_direccionales'); } /* * _politicas_direccionales_install_type_remove_field * Crear los tipos de contenidos necesarios para el funcionamiento del modulo */ function _politicas_direccionales_install_type_remove_field() { // Load fields. $politicas_direccionales_fields = _politicas_direccionales_load_fields(); $remove_field = FALSE; foreach ($politicas_direccionales_fields['fields'] as $politicas_direccionales_inserts) { $instances = content_field_instance_read(array( 'field_name' => $politicas_direccionales_inserts['field_name'], 'type_name' => $politicas_direccionales_inserts['type_name'] )); if (count($instances)) { $remove_field = TRUE; // Only remove the field if it exist. content_field_instance_delete($politicas_direccionales_inserts['field_name'], $politicas_direccionales_inserts['type_name']); drupal_set_message( t("Removed field %typefield in content type %typecontent", array( '%typefield' => $politicas_direccionales_inserts['label'], '%typecontent' => $politicas_direccionales_inserts['type_name'] ) )); } } if ($remove_field) { content_clear_type_cache(TRUE); menu_rebuild(); } } /* * _politicas_direccionales_install_type_create_field * Crear los tipos de contenidos necesarios para el funcionamiento del modulo */ function _politicas_direccionales_install_type_create_field() { // Load fields. $politicas_direccionales_fields = _politicas_direccionales_load_fields(); $create_field = FALSE; foreach ($politicas_direccionales_fields['fields'] as $politicas_direccionales_inserts) { $instances = content_field_instance_read(array( 'field_name' => $politicas_direccionales_inserts['field_name'], 'type_name' => $politicas_direccionales_inserts['type_name'] )); if (count($instances) < 1) { $create_field = TRUE; // Only add the field if it doesn't exist. Don't overwrite any changes. content_field_instance_create($politicas_direccionales_inserts); drupal_set_message( t("Saved field %typefield in content type %typecontent", array( '%typefield' => $politicas_direccionales_inserts['label'], '%typecontent' => $politicas_direccionales_inserts['type_name'] ) )); } } if ($create_field) { content_clear_type_cache(TRUE); menu_rebuild(); } } /* * _politicas_direccionales_load_fields * Fields definitions */ function _politicas_direccionales_load_fields() { $content = array(); $content['fields'] = array(); //SE AGREGAN LOS CAMPOS DE POLITICAS DIRECCIONALES $content['fields'][] = array ( 'label' => 'Causas Críticas', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_causas', 'type' => 'nodereference', 'widget_type' => 'nodereference_select', 'change' => 'Cambiar información básica', 'weight' => '31', 'autocomplete_match' => 'contains', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => '', ), ), 'default_value_php' => '', 'default_value_widget' => NULL, 'required' => 1, 'multiple' => '1', 'referenceable_types' => array ( 'causas' => 'causas', 'situacion_ideal' => 0, 'ente_planificador' => 0, 'page' => 0, 'politicas_direccionales' => 0, 'direccionales' => 0, 'descriptores' => 0, 'story' => 0, 'situacion_actual_preliminar' => 0, 'webform' => 0, 'estrategia' => false, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Guardar opciones de campo', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, 'index' => true, ), ), 'display_settings' => array ( 'weight' => '31', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Objetivo General', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_objetivog', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Cambiar información básica', 'weight' => '32', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_objetivog][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_politicas_objetivog' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_objetivog][0][value', ), ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Guardar opciones de campo', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '32', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Objetivos Específicos', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_objetivoe', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Cambiar información básica', 'weight' => '33', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_objetivoe][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_politicas_objetivoe' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_objetivoe][0][value', ), ), ), 'required' => 1, 'multiple' => '1', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Guardar opciones de campo', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '33', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Áreas de impacto', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_areasimp', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Cambiar información básica', 'weight' => '41', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_areasimp][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_politicas_areasimp' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_areasimp][0][value', ), ), ), 'required' => 1, 'multiple' => '1', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Guardar opciones de campo', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '41', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Ente Planificador', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_ente', 'type' => 'nodereference', 'widget_type' => 'nodereference_select', 'change' => 'Cambiar información básica', 'weight' => '42', 'autocomplete_match' => 'contains', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_politicas_ente' => array ( 0 => array ( 'nid' => '', ), 'nid' => array ( 'nid' => '', ), ), ), 'required' => 1, 'multiple' => '0', 'referenceable_types' => array ( 'ente_planificador' => 'ente_planificador', 'causas' => 0, 'situacion_ideal' => 0, 'page' => 0, 'politicas_direccionales' => 0, 'direccionales' => 0, 'descriptores' => 0, 'story' => 0, 'situacion_actual_preliminar' => 0, 'webform' => 0, 'estrategia' => false, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Guardar opciones de campo', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, 'index' => true, ), ), 'display_settings' => array ( 'weight' => '42', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Política Viable', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_viable', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Cambiar información básica', 'weight' => '43', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_politicas_viable' => array ( 'value' => '', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => 'NO|NO SÍ|SÍ', 'allowed_values_php' => '', 'op' => 'Guardar opciones de campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '43', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Requerimientos', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_requerimientos', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Cambiar información básica', 'weight' => '44', 'rows' => 5, 'size' => '60', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_requerimientos][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_politicas_requerimientos' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_requerimientos][0][value', ), ), ), 'required' => 1, 'multiple' => '1', 'text_processing' => '0', 'max_length' => '255', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Guardar opciones de campo', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => '255', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '44', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Acciones para Construir viabilidad', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_acciones_viab', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Cambiar información básica', 'weight' => '45', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_acciones_viab][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_politicas_acciones_viab' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_politicas_acciones_viab][0][value', ), ), ), 'required' => 1, 'multiple' => '1', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Guardar opciones de campo', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '45', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Politica Seleccionada', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_seleccionada', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Cambiar información básica', 'weight' => '46', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_politicas_seleccionada' => array ( 'value' => '', ), ), 'required' => 1, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => 'NO|NO SÍ|SÍ', 'allowed_values_php' => '', 'op' => 'Guardar opciones de campo', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '46', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Estrategías', 'type_name' => 'politicas_direccionales', 'field_name' => 'field_politicas_estrategias', 'type' => 'nodereference', 'widget_type' => 'nodereference_select', 'change' => 'Cambiar información básica', 'weight' => '47', 'autocomplete_match' => 'contains', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_politicas_estrategias' => array ( 0 => array ( 'nid' => '', ), 'nid' => array ( 'nid' => array ( 0 => '', ), ), ), ), 'required' => 0, 'multiple' => '1', 'referenceable_types' => array ( 'estrategia' => 'estrategia', 'causas' => 0, 'situacion_ideal' => 0, 'ente_planificador' => 0, 'page' => 0, 'politicas_direccionales' => 0, 'direccionales' => 0, 'descriptores' => 0, 'story' => 0, 'situacion_actual_preliminar' => 0, 'webform' => 0, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Guardar opciones de campo', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, 'index' => true, ), ), 'display_settings' => array ( 'weight' => '47', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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, ), ), ); //SE AGREGAN LOS CAMPOS DE ESTRATEGIAS $content['fields'][] = array ( 'label' => 'Políticas Direccionales', 'type_name' => 'estrategia', 'field_name' => 'field_estrategia_politicas_d', 'type' => 'nodereference', 'widget_type' => 'nodereference_select', 'change' => 'Cambiar información básica', 'weight' => '31', 'autocomplete_match' => 'contains', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => '', ), ), 'default_value_php' => '', 'default_value_widget' => NULL, 'required' => 1, 'multiple' => '1', 'referenceable_types' => array ( 'politicas_direccionales' => 'politicas_direccionales', 'causas' => 0, 'situacion_ideal' => 0, 'ente_planificador' => 0, 'estrategia' => 0, 'page' => 0, 'direccionales' => 0, 'descriptores' => 0, 'story' => 0, 'situacion_actual_preliminar' => 0, 'webform' => 0, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Guardar opciones de campo', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, 'index' => true, ), ), 'display_settings' => array ( 'weight' => '31', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Áreas de Impacto', 'type_name' => 'estrategia', 'field_name' => 'field_estrategia_area', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Cambiar información básica', 'weight' => '32', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_estrategia_area][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_estrategia_area' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_estrategia_area][0][value', ), ), ), 'required' => 1, 'multiple' => '1', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Guardar opciones de campo', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '32', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Ente Planificador', 'type_name' => 'estrategia', 'field_name' => 'field_estrategia_ente', 'type' => 'nodereference', 'widget_type' => 'nodereference_select', 'change' => 'Cambiar información básica', 'weight' => '33', 'autocomplete_match' => 'contains', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_estrategia_ente' => array ( 0 => array ( 'nid' => '', ), 'nid' => array ( 'nid' => '', ), ), ), 'required' => 0, 'multiple' => '0', 'referenceable_types' => array ( 'ente_planificador' => 'ente_planificador', 'causas' => 0, 'situacion_ideal' => 0, 'estrategia' => 0, 'page' => 0, 'politicas_direccionales' => 0, 'direccionales' => 0, 'descriptores' => 0, 'story' => 0, 'situacion_actual_preliminar' => 0, 'webform' => 0, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Guardar opciones de campo', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, 'index' => true, ), ), 'display_settings' => array ( 'weight' => '33', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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' => 'Actores Involucrados', 'type_name' => 'estrategia', 'field_name' => 'field_estrategia_actores', 'type' => 'nodereference', 'widget_type' => 'nodereference_select', 'change' => 'Cambiar información básica', 'weight' => '34', 'autocomplete_match' => 'contains', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_estrategia_actores' => array ( 0 => array ( 'nid' => '', ), 'nid' => array ( 'nid' => array ( 0 => '', ), ), ), ), 'required' => 1, 'multiple' => '1', 'referenceable_types' => array ( 'ente_planificador' => 'ente_planificador', 'causas' => 0, 'situacion_ideal' => 0, 'estrategia' => 0, 'page' => 0, 'politicas_direccionales' => 0, 'direccionales' => 0, 'descriptores' => 0, 'story' => 0, 'situacion_actual_preliminar' => 0, 'webform' => 0, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Guardar opciones de campo', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, 'index' => true, ), ), 'display_settings' => array ( 'weight' => '34', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'plain', '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, ), ), ); return $content; }