You are here

function uc_credit_cart_review_post_form_submit in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_credit/uc_credit.module \uc_credit_cart_review_post_form_submit()
  2. 7.3 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_alter in payment/uc_credit/uc_credit.module
Implements hook_form_alter().

File

payment/uc_credit/uc_credit.module, line 1394
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['do_complete'])) {

    // Otherwise stuff it back in the session for the next pageload.
    unset($_SESSION['sescrd']);
  }
}