function uc_coupon_delete_confirm in Ubercart Discount Coupons 7.2
Same name and namespace in other branches
- 5 uc_coupon.module \uc_coupon_delete_confirm()
- 6 uc_coupon.admin.inc \uc_coupon_delete_confirm()
- 7.3 uc_coupon.admin.inc \uc_coupon_delete_confirm()
Delete coupon confirm form
Parameters
$cid int: Coupon ID.
Return value
$confirm Return a drupal confirm form.
1 string reference to 'uc_coupon_delete_confirm'
- uc_coupon_menu in ./
uc_coupon.module - Implements hook_menu().
File
- ./
uc_coupon.admin.inc, line 1119 - Discount Coupons administration pages.
Code
function uc_coupon_delete_confirm($form, &$form_state, $coupon) {
$form['#uc_coupon_cid'] = $coupon->cid;
return confirm_form($form, t('Are you sure you want to delete coupon %name with code %code?', array(
'%name' => $coupon->name,
'%code' => $coupon->code,
)), 'admin/store/coupons', t('This action cannot be undone. Deleting this coupon will remove all records of past uses as well.'), t('Delete'));
}