function uc_payment_pack_uninstall in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_payment_pack/uc_payment_pack.install \uc_payment_pack_uninstall()
- 7.3 payment/uc_payment_pack/uc_payment_pack.install \uc_payment_pack_uninstall()
File
- payment/
uc_payment_pack/ uc_payment_pack.install, line 51
Code
function uc_payment_pack_uninstall() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("DROP TABLE IF EXISTS {uc_payment_check}");
db_query("DROP TABLE IF EXISTS {uc_payment_cod}");
db_query("DROP TABLE IF EXISTS {uc_payment_other}");
db_query("DELETE FROM {sequences} WHERE name LIKE '{uc_payment_check}_check_id'");
break;
case 'pgsql':
db_query("DROP TABLE {uc_payment_check}");
db_query("DROP TABLE {uc_payment_cod}");
db_query("DROP TABLE {uc_payment_other}");
break;
}
variable_del('uc_check_mailing_company');
variable_del('uc_check_mailing_name');
variable_del('uc_check_mailing_street1');
variable_del('uc_check_mailing_street2');
variable_del('uc_check_mailing_city');
variable_del('uc_check_mailing_zone');
variable_del('uc_check_mailing_postal_code');
variable_del('uc_check_mailing_country');
variable_del('uc_check_policy');
}