function uc_coupon_form_uc_order_edit_form_alter in Ubercart Discount Coupons 6
Same name and namespace in other branches
- 7.3 uc_coupon.module \uc_coupon_form_uc_order_edit_form_alter()
Implementation of hook_form_FORM_ID_alter().
Clear the session coupon when the order edit form is built. This avoid inadvertently saving a coupon to an old order.
File
- ./
uc_coupon.module, line 880 - Provides discount coupons for Ubercart.
Code
function uc_coupon_form_uc_order_edit_form_alter(&$form, $form_state) {
unset($_SESSION['uc_coupon']);
}