You are here

function commerce_coupon_delete in Commerce Coupon 7

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

Deletes a coupon.

Parameters

$commerce_coupon_id: Id of the coupon to delete.

Return value

void

1 call to commerce_coupon_delete()
commerce_coupon_ui_coupon_delete_form_submit in includes/commerce_coupon_ui.forms.inc
Submit callback for commerce_coupon_ui_coupon_delete_form().

File

./commerce_coupon.module, line 715
Coupon System for Drupal Commerce.

Code

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