function uc_credit_cart_review_post_form_submit in Ubercart 7.3
Same name and namespace in other branches
- 5 payment/uc_credit/uc_credit.module \uc_credit_cart_review_post_form_submit()
- 6.2 payment/uc_credit/uc_credit.module \uc_credit_cart_review_post_form_submit()
Clears the temporary CC data if the review order form submits.
1 string reference to 'uc_credit_cart_review_post_form_submit'
- uc_credit_form_uc_cart_checkout_review_form_alter in payment/
uc_credit/ uc_credit.module - Implements hook_form_FORM_ID_alter() for uc_cart_checkout_review_form().
File
- payment/
uc_credit/ uc_credit.module, line 798 - Defines the credit card payment method and hooks in payment gateways.
Code
function uc_credit_cart_review_post_form_submit($form, &$form_state) {
if (!empty($_SESSION['uc_checkout'][$_SESSION['cart_order']]['do_complete'])) {
// Otherwise stuff it back in the session for the next pageload.
unset($_SESSION['sescrd']);
}
}