You are here

function uc_credit_terminal_form_validate in Ubercart 7.3

Same name and namespace in other branches
  1. 5 payment/uc_credit/uc_credit.module \uc_credit_terminal_form_validate()
  2. 6.2 payment/uc_credit/uc_credit.admin.inc \uc_credit_terminal_form_validate()

Validation handler for credit terminal form.

See also

uc_credit_terminal_form()

uc_credit_terminal_form_submit()

File

payment/uc_credit/uc_credit.admin.inc, line 556
Credit administration menu items.

Code

function uc_credit_terminal_form_validate($form, &$form_state) {
  if (uc_order_load($form_state['values']['order_id']) === FALSE) {
    form_set_error('', t('Invalid order ID.  Unable to process payment.'));
  }
}