You are here

function uc_paypal_uninstall in Ubercart 7.3

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

Implements hook_uninstall().

File

payment/uc_paypal/uc_paypal.install, line 137
Install, update and uninstall functions for the uc_paypal module.

Code

function uc_paypal_uninstall() {
  db_update('uc_order_statuses')
    ->fields(array(
    'locked' => 0,
  ))
    ->condition('order_status_id', 'paypal_pending')
    ->execute();
  db_delete('variable')
    ->condition('name', 'uc_paypal_%', 'LIKE')
    ->execute();
}