here as you want to extend existing content type $form_state['values']['macro'] = '$content = ' . var_export($content, TRUE) . ';'; // form provided by content_copy.module drupal_execute('content_copy_import_form', $form_state); content_clear_type_cache(); module_load_include('inc', 'accion_especifica_de_proyecto_seguimiento', 'includes/00_instalacion/crear_flujodetrabajo.workflow'); _crear_flujodetrabajo_seguimientoMes(); content_notify('install', 'accion_especifica_de_proyecto_seguimiento'); */ } /* * Implementation of hook_uninstall() */ function accion_especifica_de_proyecto_seguimiento_uninstall() { // Notify content module when this module is uninstalled. //content_notify('uninstall', 'accion_especifica_de_proyecto_seguimiento'); //drupal_uninstall_schema('accion_especifica_de_proyecto_seguimiento'); drupal_uninstall_schema('accion_especifica_de_proyecto_seguimiento'); db_query("DELETE FROM {cache}"); /* module_load_include('inc', 'content', 'includes/content.crud'); content_field_instance_delete('field_ccktest', 'nodo_seguimiento_mes', FALSE); */ } /** * Implementation of hook_schema() * @return array of Schema API table definitions. */ function accion_especifica_de_proyecto_seguimiento_schema() { //$schema = array(); $schema['seguimiento_aeproyecto'] = 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 actual.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'id_seg_transicion_estado' => array( 'description' => 'identificador a ultima transicion.', '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, ), 'ejecutadometafisica' => array( 'description' => 'Cantidad de ejecutado en la meta fisica para el mes actual', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'infocomplementaria_metafisica' => array( 'type' => 'text', 'size' => 'big', 'not null' => TRUE, 'default' => '' ), 'infocomplementaria_metafinanciera' => array( 'type' => 'text', 'size' => 'big', 'not null' => TRUE, 'default' => '' ), 'uid' => array( 'description' => 'Referencia al autor.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), ), '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['seguimiento_aeproyecto_partida'] = array( 'description' => 'seguimiento partidas.', 'fields' => array( 'id_seg_partida' => array( 'description' => 'The id identifier to seguimiento.', 'type' => 'serial', 'not null' => TRUE, ), 'id_seg' => array( 'description' => 'id del seguimiento.', '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( 'id_seg' => array('id_seg'), 'partida' => array('partida'), ), 'primary key' => array('id_seg_partida'), ); $schema['seguimiento_aeproyecto_transiciones_estados'] = array( 'description' => 'Estado del seguimiento.', 'fields' => array( 'id_seg_transicion_estado' => array( 'description' => 'The id identifier to seguimiento.', 'type' => 'serial', 'not null' => TRUE, ), '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 al seguimiento.', '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( 'id_seg_transicion_estado' => array('id_seg_transicion_estado'), 'id_seg' => array('id_seg'), 'uid' => array('uid'), ), 'primary key' => array('id_seg_transicion_estado'), ); return $schema; }