You are here

function uc_product_uninstall in Ubercart 6.2

Same name and namespace in other branches
  1. 8.4 uc_product/uc_product.install \uc_product_uninstall()
  2. 5 uc_product/uc_product.install \uc_product_uninstall()
  3. 7.3 uc_product/uc_product.install \uc_product_uninstall()

Implements hook_uninstall().

File

uc_product/uc_product.install, line 217
Install, update and uninstall functions for the uc_product module.

Code

function uc_product_uninstall() {
  drupal_uninstall_schema('uc_product');
  db_query("DELETE FROM {variable} WHERE name LIKE 'uc_product_shippable_%%'");
  variable_del('uc_product_nodes_per_page');
  variable_del('uc_product_add_to_cart_qty');
  variable_del('uc_product_add_to_cart_teaser');
  variable_del('uc_teaser_add_to_cart_text');
  variable_del('uc_product_add_to_cart_text');
  variable_del('uc_product_field_enabled');
  variable_del('uc_product_field_weight');
}