You are here

function uc_store_uninstall in Ubercart 5

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

File

uc_store/uc_store.install, line 67

Code

function uc_store_uninstall() {
  db_query("DROP TABLE {uc_countries}");
  db_query("DROP TABLE {uc_zones}");
  db_query("DROP TABLE {uc_store_footers}");
  db_query("DELETE FROM {variable} WHERE name LIKE 'user_initials_%%'");
  db_query("DELETE FROM {variable} WHERE name LIKE 'uc_address_format_%%'");
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      db_query("DELETE FROM {sequences} WHERE name LIKE '{uc_zones}_zone_id'");
      break;
  }
  variable_del('uc_store_prev_time');
  variable_del('uc_store_site_id');
  variable_del('uc_store_name');
  variable_del('uc_store_owner');
  variable_del('uc_store_email');
  variable_del('uc_store_phone');
  variable_del('uc_store_fax');
  variable_del('uc_store_street1');
  variable_del('uc_store_street2');
  variable_del('uc_store_city');
  variable_del('uc_store_zone');
  variable_del('uc_store_postal_code');
  variable_del('uc_store_country');
  variable_del('uc_store_admin_page_display');
  variable_del('uc_customer_list_address');
  variable_del('uc_currency_sign');
  variable_del('uc_sign_after_amount');
  variable_del('uc_currency_thou');
  variable_del('uc_currency_dec');
  variable_del('uc_currency_prec');
  variable_del('uc_weight_unit');
  variable_del('uc_weight_format');
  variable_del('uc_weight_format_lb');
  variable_del('uc_weight_format_kg');
  variable_del('uc_weight_format_oz');
  variable_del('uc_weight_format_g');
  variable_del('uc_length_unit');
  variable_del('uc_length_format_in');
  variable_del('uc_length_format_cm');
  variable_del('uc_date_format_default');
  variable_del('uc_field_first_name');
  variable_del('uc_field_last_name');
  variable_del('uc_field_email');
  variable_del('uc_field_phone');
  variable_del('uc_field_company');
  variable_del('uc_field_address');
  variable_del('uc_field_street');
  variable_del('uc_field_street1');
  variable_del('uc_field_street2');
  variable_del('uc_field_city');
  variable_del('uc_field_zone');
  variable_del('uc_field_country');
  variable_del('uc_field_postal_code');
  variable_del('uc_address_fields');
  variable_del('uc_address_fields_required');
}