array( 'vpid' => array( 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, ), 'pfid' => array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'cart_empty' => array( 'description' => 'Cart empty setting for this instance of the feature.', 'type' => 'int', 'size' => 'small', 'not null' => TRUE, 'default' => 0, ), 'redirect' => array( 'description' => 'Add to cart redirect for this instance of the feature.', 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '', ), ), 'indexes' => array( 'pfid' => array('pfid'), ), 'primary key' => array('vpid'), ); return $schema; } /** * Implementation of hook_uninstall() */ function uc_atctweaks_uninstall() { db_delete('uc_product_features') ->condition('fid', 'atctweaks') ->execute(); }