You are here

function uc_cart_checkout_review_form in Ubercart 7.3

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

Gives customers the option to finish checkout or go revise their information.

See also

uc_cart_checkout_review_form_back()

uc_cart_checkout_review_form_submit()

1 string reference to 'uc_cart_checkout_review_form'
uc_cart_checkout_review in uc_cart/uc_cart.pages.inc
Allows a customer to review their order before finally submitting it.

File

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

Code

function uc_cart_checkout_review_form($form, &$form_state, $order) {
  if (!isset($form_state['uc_order'])) {
    $form_state['uc_order'] = $order;
    $form_state['storage']['base_path'] = implode('/', array_slice(arg(), 0, -2));
  }
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['back'] = array(
    '#type' => 'submit',
    '#value' => t('Back'),
    '#submit' => array(
      'uc_cart_checkout_review_form_back',
    ),
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit order'),
  );
  return $form;
}