You are here

function commerce_coupon_usage_transaction_delete in Commerce Coupon 7.2

Deletes a coupon usage transaction by ID.

Parameters

int $product_id: The ID of the product to delete.

Return value

bool TRUE on success, FALSE otherwise.

1 call to commerce_coupon_usage_transaction_delete()
commerce_coupon_usage_commerce_coupon_final_checkout_transaction_rollback in modules/usage/commerce_coupon_usage.module
Implements hook_commerce_coupon_final_checkout_transaction_rollback().

File

modules/usage/commerce_coupon_usage.module, line 310

Code

function commerce_coupon_usage_transaction_delete($transaction_id) {
  return commerce_coupon_usage_transaction_delete_multiple(array(
    $transaction_id,
  ));
}