You are here

function uc_product_uninstall in Ubercart 7.3

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. 6.2 uc_product/uc_product.install \uc_product_uninstall()

Implements hook_uninstall().

File

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

Code

function uc_product_uninstall() {
  db_delete('variable')
    ->condition(db_or()
    ->condition('name', 'uc_product_shippable_%', 'LIKE')
    ->condition('name', 'uc_image_%', 'LIKE'))
    ->execute();
  variable_del('uc_product_nodes_per_page');
  variable_del('uc_product_add_to_cart_qty');
}