You are here

function uc_coupon_order_submit in Ubercart Discount Coupons 7.3

1 string reference to 'uc_coupon_order_submit'
uc_order_pane_coupon in ./uc_coupon.module
Coupon order pane callback.

File

./uc_coupon.module, line 1306
Provides discount codes and gift certificates for Ubercart.

Code

function uc_coupon_order_submit($form, &$form_state) {
  $form_state['rebuild'] = TRUE;
  uc_coupon_form_submit($form, $form_state);
  $coupons = uc_coupon_get_order_coupons($form_state['order']);
  uc_coupon_apply_to_order($form_state['order'], uc_coupon_get_order_coupons($form_state['order']));

  // !TODO: Shouldn't save the order here because we prevent reverting changes
  // made by other panes?
  uc_order_save($form_state['order']);
}