You are here

function uc_paypal_ec_review_form_validate in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_paypal/uc_paypal.module \uc_paypal_ec_review_form_validate()
  2. 7.3 payment/uc_paypal/uc_paypal.pages.inc \uc_paypal_ec_review_form_validate()

File

payment/uc_paypal/uc_paypal.pages.inc, line 338
Paypal administration menu items.

Code

function uc_paypal_ec_review_form_validate($form, &$form_state) {
  if ($form_state['values']['shippable'] == 'true') {
    if (!isset($_POST['quote-option'])) {
      form_set_error('shipping', t('You must calculate and select a shipping option.'));
    }
  }
}