function uc_payment_uninstall in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_payment/uc_payment.install \uc_payment_uninstall()
- 7.3 payment/uc_payment/uc_payment.install \uc_payment_uninstall()
File
- payment/
uc_payment/ uc_payment.install, line 41
Code
function uc_payment_uninstall() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("DROP TABLE IF EXISTS {uc_payment_receipts}");
db_query("DELETE FROM {sequences} WHERE name LIKE '{uc_payment_receipts}_receipt_id'");
break;
case 'pgsql':
db_query("DROP TABLE {uc_payment_receipts}");
break;
}
db_query("DELETE FROM {variable} WHERE name LIKE 'uc_pg_%%'");
db_query("DELETE FROM {variable} WHERE name LIKE 'uc_payment_method_%%'");
variable_del('uc_payment_tracking');
variable_del('uc_payment_deleting');
variable_del('uc_payment_logging');
variable_del('uc_default_payment_msg');
}