You are here

function uc_paypal_uninstall in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_paypal/uc_paypal.install \uc_paypal_uninstall()
  2. 7.3 payment/uc_paypal/uc_paypal.install \uc_paypal_uninstall()

Implements hook_uninstall().

File

payment/uc_paypal/uc_paypal.install, line 117
Installation file for PayPal, primarily for the logging of IPNs.

Code

function uc_paypal_uninstall() {
  drupal_uninstall_schema('uc_paypal');
  db_query("DELETE FROM {variable} WHERE name LIKE 'uc_paypal_%%'");
  db_query("UPDATE {uc_order_statuses} SET locked = 0 WHERE order_status_id = 'paypal_pending'");
}