You are here

function uc_cart_checkout_form_submit in Ubercart 5

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

File

uc_cart/uc_cart.module, line 1540

Code

function uc_cart_checkout_form_submit($form_id, $form_values) {
  if ($_SESSION['checkout_valid'] === FALSE) {
    $url = 'cart/checkout';
  }
  else {
    $url = 'cart/checkout/review';
    $_SESSION['do_review'] = TRUE;
  }
  unset($_SESSION['checkout_valid']);
  return $url;
}