You are here

function uc_store_uninstall in Ubercart 6.2

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

Implements hook_uninstall().

File

uc_store/uc_store.install, line 167
Install, update, and uninstall functions for the uc_store module.

Code

function uc_store_uninstall() {
  drupal_uninstall_schema('uc_store');
  db_query("DELETE FROM {variable} WHERE name LIKE 'user_initials_%%'");
  db_query("DELETE FROM {variable} WHERE name LIKE 'uc_address_format_%%'");
  db_query("DELETE FROM {variable} WHERE name LIKE 'uc_currency_%%'");
  db_query("DELETE FROM {variable} WHERE name LIKE 'uc_store_%%'");
  db_query("DELETE FROM {variable} WHERE name LIKE 'uc_weight_%%'");
  db_query("DELETE FROM {variable} WHERE name LIKE 'uc_length_%%'");
  db_query("DELETE FROM {variable} WHERE name LIKE 'uc_field_%%'");
  variable_del('uc_customer_list_address');
  variable_del('uc_sign_after_amount');
  variable_del('uc_date_format_default');
  variable_del('uc_address_fields');
  variable_del('uc_address_fields_required');
  variable_del('uc_footer_message');
}