'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'disp-width' => '2')); } } /** * Implements hook_uninstall(). */ function ec_buynow_uninstall() { if (db_field_exists('ec_product', 'hide_buynow_link')) { $ret = array(); db_drop_field('ec_product', 'hide_buynow_link'); } } /** * Implements hook_enable(). */ function ec_buynow_enable() { // Reset the the ptypes cache so it loads up the new ptypes correctly ec_product_get_types('types', NULL, TRUE); } /** * Implements hook_schema_alter(). */ function ec_buynow_schema_alter(&$schema) { $schema['ec_product']['fields']['hide_buynow_link'] = array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ); } /** * Implements hook_update_last_removed(). */ function ec_buynow_update_last_removed() { return 6400; }