You are here

function uc_paypal_ec_review_form_validate in Ubercart 7.3

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

File

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

Code

function uc_paypal_ec_review_form_validate($form, &$form_state) {
  if (!empty($form_state['values']['shippable']) && empty($form_state['values']['quotes']['quote_option'])) {
    form_set_error('shipping', t('You must calculate and select a shipping option.'));
  }
}