You are here

function uc_recurring_subscription_delete in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.2 modules/uc_recurring_subscription/uc_recurring_subscription.module \uc_recurring_subscription_delete()

Delete recurring subscription.

File

modules/uc_recurring_subscription/uc_recurring_subscription.module, line 152
Manage subscription/memberships.

Code

function uc_recurring_subscription_delete($nid) {

  // TODO Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("DELETE FROM {uc_recurring_subcription} WHERE nid = %d", $nid) */
  db_delete('uc_recurring_subscription')
    ->condition('nid', $nid)
    ->execute();
}