'Acciones centralizadas.', 'fields' => array( 'nid' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'year' => array( 'description' => 'anho de la accion especifica.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'ente' => array( 'description' => 'Enlace del ente planificador.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), ), 'indexes' => array( 'nid' => array('nid'), 'year' => array('year'), 'ente' => array('ente'), ), 'primary key' => array('nid'), ); $schema['accion_reformular'] = array( 'description' => 'Acciones centralizadas.', 'fields' => array( 'id_ref' => array( 'description' => 'The id identifier to reformular.', 'type' => 'serial', 'not null' => TRUE, ), 'uid' => array( 'description' => 'uid del autor.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'nid' => array( 'description' => 'Enlace del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado' => array( 'description' => 'Estado de la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado_ant' => array( 'description' => 'Estado anterior de la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'date' => array( 'description' => 'Fecha de la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'variacion' => array( 'description' => 'Variacion de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'monto' => array( 'description' => 'Monto de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), ), 'indexes' => array( 'nid' => array('nid'), 'id_ref' => array('id_ref'), 'uid' => array('uid'), 'estado' => array('estado'), ), 'primary key' => array('id_ref'), ); $schema['accion_reformula'] = array( 'description' => 'Acciones centralizadas.', 'fields' => array( 'id_ref' => array( 'description' => 'id de la reformualcion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'nid' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'partida' => array( 'description' => 'Partida del la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'field_name' => array( 'type' => 'varchar', 'length' => 255, 'default' => '' ), 'value' => array( 'description' => 'Monto enero de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_1' => array( 'description' => 'Monto febrero de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_2' => array( 'description' => 'Monto marzo de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_3' => array( 'description' => 'Monto abril de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_4' => array( 'description' => 'Monto mayo de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_5' => array( 'description' => 'Monto junio de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_6' => array( 'description' => 'Monto julio de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_7' => array( 'description' => 'Monto agosto de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_8' => array( 'description' => 'Monto septiembre de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_9' => array( 'description' => 'Monto octubre de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_10' => array( 'description' => 'Monto noviembre de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_11' => array( 'description' => 'Monto diciembre de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), ), 'indexes' => array( 'nid' => array('nid'), 'id_ref' => array('id_ref'), 'partida' => array('partida'), ), ); $schema['accion_reformular_state'] = array( 'description' => 'Estados reformulacion.', 'fields' => array( 'nid' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado' => array( 'description' => 'estado.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado_ant' => array( 'description' => 'estado anterior.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'date' => array( 'description' => 'Fecha.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'id_ref' => array( 'description' => 'Referencia a la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'uid' => array( 'description' => 'Referencia al autor.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'comentario' => array( 'type' => 'text', 'size' => 'big', 'not null' => TRUE, 'default' => '' ), ), 'indexes' => array( 'nid' => array('nid'), 'id_ref' => array('id_ref'), 'uid' => array('uid'), ), ); $schema['accion_seguimiento'] = array( 'description' => 'Seguimiento.', 'fields' => array( 'id_seg' => array( 'description' => 'The id identifier to seguimiento.', 'type' => 'serial', 'not null' => TRUE, ), 'nid' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado' => array( 'description' => 'estado.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'campo' => array( 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '' ), 'estado_ant' => array( 'description' => 'estado anterior.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'fecha' => array( 'description' => 'Fecha.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'mes' => array( 'description' => 'Referencia a la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'uid' => array( 'description' => 'Referencia al autor.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'comentario' => array( 'type' => 'text', 'size' => 'big', 'not null' => TRUE, 'default' => '' ), ), 'indexes' => array( 'nid' => array('nid'), 'id_seg' => array('id_seg'), 'uid' => array('uid'), 'mes' => array('mes'), 'estado' => array('estado'), ), 'primary key' => array('id_seg'), ); $schema['accion_segu_partida'] = array( 'description' => 'seguimiento partidas.', 'fields' => array( 'id_seg' => array( 'description' => 'id del seguimiento.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'nid' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'partida' => array( 'description' => 'Partida del la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'comprometido' => array( 'description' => 'Comprometido.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'causado' => array( 'description' => 'Causado.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'pagado' => array( 'description' => 'Pagado.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), ), 'indexes' => array( 'nid' => array('nid'), 'id_seg' => array('id_seg'), 'partida' => array('partida'), ), ); $schema['accion_seguimiento_state'] = array( 'description' => 'Estado del seguimiento.', 'fields' => array( 'nid' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado' => array( 'description' => 'estado.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado_ant' => array( 'description' => 'estado anterior.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'date' => array( 'description' => 'Fecha.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'id_seg' => array( 'description' => 'Referencia a la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'uid' => array( 'description' => 'Referencia al autor.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'comentario' => array( 'type' => 'text', 'size' => 'big', 'not null' => TRUE, 'default' => '' ), ), 'indexes' => array( 'nid' => array('nid'), 'id_seg' => array('id_seg'), 'uid' => array('uid'), ), ); return $schema; } /* * _acciones_centralizadas_install_type_remove_field * Eliminar los tipos de contenidos necesarios para el funcionamiento del modulo */ function _acciones_centralizadas_install_type_remove_field() { // Load fields. $acciones_centralizadas_fields = _acciones_centralizadas_load_fields(); $groups = array(); $grupos = fieldgroup_groups('accion_centralizada'); $remove_group = FALSE; if (count($acciones_centralizadas_fields['groups'])) { foreach ($acciones_centralizadas_fields['groups'] as $acciones_centralizadas_inserts) { if (isset($grupos[$acciones_centralizadas_inserts['group_name']])) { $remove_group = TRUE; fieldgroup_delete($acciones_centralizadas_inserts['type_name'], $acciones_centralizadas_inserts['group_name']); drupal_set_message(t("Removed group %typefield in content type %typecontent", array('%typefield' => $acciones_centralizadas_inserts['label'], '%typecontent' => $acciones_centralizadas_inserts['type_name']))); } } } if ($remove_group) { // Reset the static variable in fieldgroup_groups() with new data. fieldgroup_groups('', FALSE, TRUE); } $remove_field = FALSE; if (count($acciones_centralizadas_fields['fields'])) { foreach ($acciones_centralizadas_fields['fields'] as $acciones_centralizadas_inserts) { $instances = content_field_instance_read(array( 'field_name' => $acciones_centralizadas_inserts['field_name'], 'type_name' => $acciones_centralizadas_inserts['type_name'] )); if (count($instances)) { $remove_field = TRUE; // Only add the field if it doesn't exist. Don't overwrite any changes. content_field_instance_delete($acciones_centralizadas_inserts['field_name'], $acciones_centralizadas_inserts['type_name']); drupal_set_message(t("Removed field %typefield in content type %typecontent", array('%typefield' => $acciones_centralizadas_inserts['label'], '%typecontent' => $acciones_centralizadas_inserts['type_name']))); } } } if ($remove_field) { content_clear_type_cache(TRUE); menu_rebuild(); } } /* * _acciones_centralizadas_install_type_create_field * Crear los tipos de contenidos necesarios para el funcionamiento del modulo */ function _acciones_centralizadas_install_type_create_field() { // Load fields. $acciones_centralizadas_fields = _acciones_centralizadas_load_fields(); $groups = array(); $grupos = fieldgroup_groups('accion_centralizada'); $create_group = FALSE; if (count($acciones_centralizadas_fields['groups'])) { foreach ($acciones_centralizadas_fields['groups'] as $acciones_centralizadas_inserts) { if (!isset($grupos[$acciones_centralizadas_inserts['group_name']])) { $create_group = TRUE; fieldgroup_save_group($acciones_centralizadas_inserts['type_name'], (array) $acciones_centralizadas_inserts); drupal_set_message(t("Saved group %typefield in content type %typecontent", array('%typefield' => $acciones_centralizadas_inserts['label'], '%typecontent' => $acciones_centralizadas_inserts['type_name']))); } } } if ($create_group) { // Reset the static variable in fieldgroup_groups() with new data. fieldgroup_groups('', FALSE, TRUE); } $create_field = FALSE; if (count($acciones_centralizadas_fields['fields'])) { foreach ($acciones_centralizadas_fields['fields'] as $acciones_centralizadas_inserts) { $instances = content_field_instance_read(array( 'field_name' => $acciones_centralizadas_inserts['field_name'], 'type_name' => $acciones_centralizadas_inserts['type_name'] )); if (count($instances) < 1) { $create_field = TRUE; // Only add the field if it doesn't exist. Don't overwrite any changes. $field_create = content_field_instance_create($acciones_centralizadas_inserts, FALSE); drupal_set_message(t("Saved field %typefield in content type %typecontent", array('%typefield' => $acciones_centralizadas_inserts['label'], '%typecontent' => $acciones_centralizadas_inserts['type_name']))); fieldgroup_update_fields($field_create); } } } if ($create_field) { content_clear_type_cache(TRUE); menu_rebuild(); } } /* * _acciones_centralizadas_load_fields * Campos */ function _acciones_centralizadas_load_fields() { $content = array(); $content['groups'] = array(); $content['groups'][] = array ( 'label' => 'AC 1 - Dirección y Coordinación de los trabajadores', 'type_name' => 'accion_centralizada', 'group_type' => 'standard', 'settings' => array ( 'form' => array ( 'style' => 'fieldset', 'description' => '', ), 'display' => array ( 'description' => '', 'teaser' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', 'exclude' => 0, ), 4 => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'modal' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'inline' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'token' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'label' => 'above', ), ), 'weight' => '33', 'group_name' => 'group_ac_ac1', ); $content['groups'][] = array ( 'label' => 'AC 2 - Gestión administrativa', 'type_name' => 'accion_centralizada', 'group_type' => 'standard', 'settings' => array ( 'form' => array ( 'style' => 'fieldset', 'description' => '', ), 'display' => array ( 'description' => '', 'teaser' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', 'exclude' => 0, ), 4 => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'modal' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'inline' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'token' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'label' => 'above', ), ), 'weight' => '37', 'group_name' => 'group_ac_ac2', ); $content['groups'][] = array ( 'label' => 'AC 3 - Previsión y protección social\', que contiene las Acciones Específicas', 'type_name' => 'accion_centralizada', 'group_type' => 'standard', 'settings' => array ( 'form' => array ( 'style' => 'fieldset', 'description' => '', ), 'display' => array ( 'description' => '', 'teaser' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', 'exclude' => 0, ), 4 => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'modal' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'inline' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'token' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'label' => 'above', ), ), 'weight' => '42', 'group_name' => 'group_ac_ac3', ); $content['groups'][] = array ( 'label' => 'AC 7 - Protección y atención integral a las familias y personas en los refugios en caso de emergencias o desastres', 'type_name' => 'accion_centralizada', 'group_type' => 'standard', 'settings' => array ( 'form' => array ( 'style' => 'fieldset', 'description' => '', ), 'display' => array ( 'description' => '', 'teaser' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', 'exclude' => 0, ), 4 => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'modal' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'inline' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'token' => array ( 'format' => 'fieldset', 'exclude' => 0, ), 'label' => 'above', ), ), 'weight' => '46', 'group_name' => 'group_ac_ac4', ); $vid = variable_get('cck_plan_fields_vid', 38); $tree = taxonomy_get_tree($vid); $options = array(); $first = NULL; if ($tree) { foreach ($tree as $term) { if (!$first) { $first = $term->tid; } $options[$term->tid] = $term->tid; } } $content['fields'] = array(); $content['fields'][] = array ( 'label' => 'AE 1 - Asignación y control de los recursos para gastos de los trabajadores', 'type_name' => 'accion_centralizada', 'field_name' => 'field_ac_ac1_ae1', 'type' => 'cck_plan_fields_field', 'widget_type' => 'cck_plan_fields_elements', 'change' => 'Change basic information', 'weight' => '34', 'min' => '0', 'max' => '', 'description' => '', 'default_value' => array ( 0 => array ( 'tid' => $first, 'value' => '0', 'value_1' => '0', 'value_2' => '0', 'value_3' => '0', 'value_4' => '0', 'value_5' => '0', 'value_6' => '0', 'value_7' => '0', 'value_8' => '0', 'value_9' => '0', 'value_10' => '0', 'value_11' => '0', 'total' => '0', '_error_element' => 'value', ), ), 'default_value_php' => '', 'default_value_widget' => NULL, 'group' => 'group_ac_ac1', 'required' => 0, 'multiple' => '1', 'vid' => $vid, 'vtid' => $options, 'op' => 'Guardar configuraciones del campo', 'module' => 'cck_plan_fields', 'widget_module' => 'cck_plan_fields', 'columns' => array ( 'tid' => array ( 'type' => 'int', 'not null' => false, 'sortable' => true, 'views' => true, ), 'value' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_1' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_2' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_3' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_4' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_5' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_6' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_7' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_8' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_9' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_10' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_11' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_12' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'weight' => '34', 'parent' => 'group_ac_ac1', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', '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' => 'AE 1 - Apoyo institucional a las acciones específicas de los proyectos del ente', 'type_name' => 'accion_centralizada', 'field_name' => 'field_ac_ac1_ae2', 'type' => 'cck_plan_fields_field', 'widget_type' => 'cck_plan_fields_elements', 'change' => 'Change basic information', 'weight' => '38', 'min' => '0', 'max' => '', 'description' => '', 'default_value' => array ( 0 => array ( 'tid' => $first, 'value' => '0', 'value_1' => '0', 'value_2' => '0', 'value_3' => '0', 'value_4' => '0', 'value_5' => '0', 'value_6' => '0', 'value_7' => '0', 'value_8' => '0', 'value_9' => '0', 'value_10' => '0', 'value_11' => '0', 'total' => '0', '_error_element' => 'value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_ac_ac1_ae2' => array ( 0 => array ( 'tid' => $first, 'value' => 0, 'value_1' => 0, 'value_2' => 0, 'value_3' => 0, 'value_4' => 0, 'value_5' => 0, 'value_6' => 0, 'value_7' => 0, 'value_8' => 0, 'value_9' => 0, 'value_10' => 0, 'value_11' => 0, 'total' => 0, '_error_element' => 'value', ), ), ), 'group' => 'group_ac_ac2', 'required' => 0, 'multiple' => '1', 'vid' => $vid, 'vtid' => $options, 'op' => 'Guardar configuraciones del campo', 'module' => 'cck_plan_fields', 'widget_module' => 'cck_plan_fields', 'columns' => array ( 'tid' => array ( 'type' => 'int', 'not null' => false, 'sortable' => true, 'views' => true, ), 'value' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_1' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_2' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_3' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_4' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_5' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_6' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_7' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_8' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_9' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_10' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_11' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_12' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'weight' => '38', 'parent' => 'group_ac_ac2', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', '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' => 'AE 2 - Apoyo institucional al sector privado y al sector externo', 'type_name' => 'accion_centralizada', 'field_name' => 'field_ac_ac2_ae2', 'type' => 'cck_plan_fields_field', 'widget_type' => 'cck_plan_fields_elements', 'change' => 'Change basic information', 'weight' => '39', 'min' => '0', 'max' => '', 'description' => '', 'default_value' => array ( 0 => array ( 'tid' => $first, 'value' => '0', 'value_1' => '0', 'value_2' => '0', 'value_3' => '0', 'value_4' => '0', 'value_5' => '0', 'value_6' => '0', 'value_7' => '0', 'value_8' => '0', 'value_9' => '0', 'value_10' => '0', 'value_11' => '0', 'total' => '0', '_error_element' => 'value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_ac_ac2_ae2' => array ( 0 => array ( 'tid' => $first, 'value' => 0, 'value_1' => 0, 'value_2' => 0, 'value_3' => 0, 'value_4' => 0, 'value_5' => 0, 'value_6' => 0, 'value_7' => 0, 'value_8' => 0, 'value_9' => 0, 'value_10' => 0, 'value_11' => 0, 'total' => 0, '_error_element' => 'value', ), ), ), 'group' => 'group_ac_ac2', 'required' => 0, 'multiple' => '1', 'vid' => $vid, 'vtid' => $options, 'op' => 'Guardar configuraciones del campo', 'module' => 'cck_plan_fields', 'widget_module' => 'cck_plan_fields', 'columns' => array ( 'tid' => array ( 'type' => 'int', 'not null' => false, 'sortable' => true, 'views' => true, ), 'value' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_1' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_2' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_3' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_4' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_5' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_6' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_7' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_8' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_9' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_10' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_11' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_12' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'weight' => '39', 'parent' => 'group_ac_ac2', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', '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' => 'AE 3 - Apoyo institucional al sector público', 'type_name' => 'accion_centralizada', 'field_name' => 'field_ac_ac2_ae3', 'type' => 'cck_plan_fields_field', 'widget_type' => 'cck_plan_fields_elements', 'change' => 'Change basic information', 'weight' => '40', 'min' => '0', 'max' => '', 'description' => '', 'default_value' => array ( 0 => array ( 'tid' => $first, 'value' => '0', 'value_1' => '0', 'value_2' => '0', 'value_3' => '0', 'value_4' => '0', 'value_5' => '0', 'value_6' => '0', 'value_7' => '0', 'value_8' => '0', 'value_9' => '0', 'value_10' => '0', 'value_11' => '0', 'total' => '0', '_error_element' => 'value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_ac_ac2_ae3' => array ( 0 => array ( 'tid' => $first, 'value' => 0, 'value_1' => 0, 'value_2' => 0, 'value_3' => 0, 'value_4' => 0, 'value_5' => 0, 'value_6' => 0, 'value_7' => 0, 'value_8' => 0, 'value_9' => 0, 'value_10' => 0, 'value_11' => 0, 'total' => 0, '_error_element' => 'value', ), ), ), 'group' => 'group_ac_ac2', 'required' => 0, 'multiple' => '1', 'vid' => $vid, 'vtid' => $options, 'op' => 'Guardar configuraciones del campo', 'module' => 'cck_plan_fields', 'widget_module' => 'cck_plan_fields', 'columns' => array ( 'tid' => array ( 'type' => 'int', 'not null' => false, 'sortable' => true, 'views' => true, ), 'value' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_1' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_2' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_3' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_4' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_5' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_6' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_7' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_8' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_9' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_10' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_11' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_12' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'weight' => '40', 'parent' => 'group_ac_ac2', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', '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' => 'AE 1 - Asignación y control de los recursos para gastos de los pensionados, pensionadas, jubilados y jubiladas', 'type_name' => 'accion_centralizada', 'field_name' => 'field_ac_ac3_ae1', 'type' => 'cck_plan_fields_field', 'widget_type' => 'cck_plan_fields_elements', 'change' => 'Change basic information', 'weight' => '43', 'min' => '0', 'max' => '', 'description' => '', 'default_value' => array ( 0 => array ( 'tid' => $first, 'value' => '0', 'value_1' => '0', 'value_2' => '0', 'value_3' => '0', 'value_4' => '0', 'value_5' => '0', 'value_6' => '0', 'value_7' => '0', 'value_8' => '0', 'value_9' => '0', 'value_10' => '0', 'value_11' => '0', 'total' => '0', '_error_element' => 'value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_ac_ac3_ae1' => array ( 0 => array ( 'tid' => $first, 'value' => 0, 'value_1' => 0, 'value_2' => 0, 'value_3' => 0, 'value_4' => 0, 'value_5' => 0, 'value_6' => 0, 'value_7' => 0, 'value_8' => 0, 'value_9' => 0, 'value_10' => 0, 'value_11' => 0, 'total' => 0, '_error_element' => 'value', ), ), ), 'group' => 'group_ac_ac3', 'required' => 0, 'multiple' => '1', 'vid' => $vid, 'vtid' => $options, 'op' => 'Guardar configuraciones del campo', 'module' => 'cck_plan_fields', 'widget_module' => 'cck_plan_fields', 'columns' => array ( 'tid' => array ( 'type' => 'int', 'not null' => false, 'sortable' => true, 'views' => true, ), 'value' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_1' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_2' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_3' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_4' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_5' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_6' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_7' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_8' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_9' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_10' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_11' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_12' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'weight' => '43', 'parent' => 'group_ac_ac3', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', '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' => 'AE 1 - Asignación y control de los recursos para la atención de familias y personas en los refugios', 'type_name' => 'accion_centralizada', 'field_name' => 'field_ac_ac4_ae1', 'type' => 'cck_plan_fields_field', 'widget_type' => 'cck_plan_fields_elements', 'change' => 'Change basic information', 'weight' => '47', 'min' => '0', 'max' => '', 'description' => '', 'default_value' => array ( 0 => array ( 'tid' => $first, 'value' => '0', 'value_1' => '0', 'value_2' => '0', 'value_3' => '0', 'value_4' => '0', 'value_5' => '0', 'value_6' => '0', 'value_7' => '0', 'value_8' => '0', 'value_9' => '0', 'value_10' => '0', 'value_11' => '0', 'total' => '0', '_error_element' => 'value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_ac_ac4_ae1' => array ( 0 => array ( 'tid' => $first, 'value' => 0, 'value_1' => 0, 'value_2' => 0, 'value_3' => 0, 'value_4' => 0, 'value_5' => 0, 'value_6' => 0, 'value_7' => 0, 'value_8' => 0, 'value_9' => 0, 'value_10' => 0, 'value_11' => 0, 'total' => 0, '_error_element' => 'value', ), ), ), 'group' => 'group_ac_ac4', 'required' => 0, 'multiple' => '1', 'vid' => $vid, 'vtid' => $options, 'op' => 'Guardar configuraciones del campo', 'module' => 'cck_plan_fields', 'widget_module' => 'cck_plan_fields', 'columns' => array ( 'tid' => array ( 'type' => 'int', 'not null' => false, 'sortable' => true, 'views' => true, ), 'value' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_1' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_2' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_3' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_4' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_5' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_6' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_7' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_8' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_9' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_10' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_11' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), 'value_12' => array ( 'type' => 'numeric', 'precision' => '32', 'scale' => '0', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'weight' => '47', 'parent' => 'group_ac_ac4', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', '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', 'field_name' => 'field_acciones_ente', 'type_name' => 'accion_centralizada', 'type' => 'nodereference', 'widget_type' => 'nodereference_select', 'change' => 'Change basic information', 'weight' => '48', 'autocomplete_match' => 'contains', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_acciones_ente' => array ( 0 => array ( 'nid' => '', ), 'nid' => array ( 'nid' => '', ), ), ), 'group' => false, 'required' => 1, 'multiple' => '0', 'referenceable_types' => array ( 'ente_planificador' => 'ente_planificador', 'accion_centralizada' => 0, 'causas' => 0, 'ente_institucional' => 0, 'necesidades' => 0, 'objetivos_estrategicos' => 0, 'page' => 0, 'proyecto_estrategico' => 0, 'descriptores' => 0, 'story' => 0, 'situacion_actual_preliminar' => 0, 'enlacess' => 0, 'ente_funciones' => 0, 'nuevo' => 0, 'pruebas' => 0, 'nnnn' => false, 't1' => false, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Guardar configuraciones del campo', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, 'index' => true, ), ), 'display_settings' => array ( 'weight' => '48', 'parent' => '', 'label' => array ( 'format' => 'above', ), '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, ), ), ); return $content; }