You are here

function uc_cart_checkout_form_submit in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_cart/uc_cart.module \uc_cart_checkout_form_submit()
  2. 7.3 uc_cart/uc_cart.pages.inc \uc_cart_checkout_form_submit()

Form submission handler for uc_cart_checkout_form().

See also

uc_cart_checkout_form()

uc_cart_checkout_form_validate()

File

uc_cart/uc_cart.pages.inc, line 344
Cart menu items.

Code

function uc_cart_checkout_form_submit($form, &$form_state) {
  if ($_SESSION['checkout_valid'] === FALSE) {
    $url = 'cart/checkout';
  }
  else {
    $url = 'cart/checkout/review';
    $_SESSION['do_review'] = TRUE;
  }
  unset($_SESSION['checkout_valid']);
  $form_state['redirect'] = $url;
}