You are here

function commerce_coupon_delete in Commerce Coupon 7.2

Same name and namespace in other branches
  1. 7 commerce_coupon.module \commerce_coupon_delete()

Deletes a coupon.

Parameters

int $coupon_id: Id of the coupon to delete.

2 calls to commerce_coupon_delete()
commerce_coupon_delete_form_submit in includes/commerce_coupon.admin.inc
Submit callback for commerce_coupon_delete_form().
commerce_coupon_form_attach_coupons in ./commerce_coupon.module
Form submit callback: save a coupon from the discount UI.

File

./commerce_coupon.module, line 970
Provides coupon functionality for Drupal Commerce.

Code

function commerce_coupon_delete($coupon_id) {
  return commerce_coupon_delete_multiple(array(
    $coupon_id,
  ));
}