You are here

function uc_payment_by_order_form_validate in Ubercart 7.3

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

Form validation for uc_payment_by_order_form().

See also

uc_payment_by_order_form()

uc_payment_by_order_form_submit()

File

payment/uc_payment/uc_payment.admin.inc, line 242
Payment administration menu items.

Code

function uc_payment_by_order_form_validate($form, &$form_state) {
  if (!is_numeric($form_state['values']['payments']['new']['amount'])) {
    form_set_error('payments][new][amount', t('You must enter a number for the amount.'));
  }
  return TRUE;
}