function uc_cart_checkout_review_form in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_cart/uc_cart.pages.inc \uc_cart_checkout_review_form()
- 7.3 uc_cart/uc_cart.pages.inc \uc_cart_checkout_review_form()
5 string references to 'uc_cart_checkout_review_form'
- uc_2checkout_form_alter in payment/
uc_2checkout/ uc_2checkout.module - Implementation of hook_form_alter().
- uc_cart_checkout_review in uc_cart/
uc_cart.module - Allow a customer to review their order before finally submitting it.
- uc_credit_form_alter in payment/
uc_credit/ uc_credit.module - Implementation of hook_form_alter().
- uc_paypal_form_alter in payment/
uc_paypal/ uc_paypal.module - Implementation of hook_form_alter(). Notice how we alter the checkout review form to post the order to PayPal.
- uc_recurring_form_alter in payment/
uc_recurring/ uc_recurring.module - Implementation of hook_form_alter().
File
- uc_cart/
uc_cart.module, line 1655
Code
function uc_cart_checkout_review_form() {
// Set the session variable to pass the redirect check on the pageload.
if ($_POST['op'] == t('Back')) {
$_SESSION['do_review'] = TRUE;
}
$form['back'] = array(
'#type' => 'submit',
'#value' => t('Back'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => variable_get('uc_checkout_submit_button', t('Submit order')),
);
return $form;
}