You are here

function uc_discounts_uses_delete_for_order in Ubercart Discounts (Alternative) 7.2

Same name and namespace in other branches
  1. 6.2 uc_discounts/uc_discounts.module \uc_discounts_uses_delete_for_order()

Deletes all uc_discounts_uses rows for an order ID.

Parameters

int $order_id:

2 calls to uc_discounts_uses_delete_for_order()
uc_discounts_uc_order in uc_discounts/uc_discounts.module
Implements hook_uc_order().
uc_discounts_uses_save_for_order in uc_discounts/uc_discounts.module
Records uses of a discount for an order.

File

uc_discounts/uc_discounts.module, line 2197

Code

function uc_discounts_uses_delete_for_order($order_id) {
  db_delete('uc_discounts_uses')
    ->condition('order_id', $order_id)
    ->execute();
}