You are here

function uc_payment_pack_receive_check_form_validate in Ubercart 5

Same name and namespace in other branches
  1. 6.2 payment/uc_payment_pack/uc_payment_pack.admin.inc \uc_payment_pack_receive_check_form_validate()

File

payment/uc_payment_pack/uc_payment_pack.module, line 434
Provides the check/money order, COD, and "other" payment methods.

Code

function uc_payment_pack_receive_check_form_validate($form_id, $form_values) {
  if (!$form_values['check_exists'] && !is_numeric($form_values['amount'])) {
    form_set_error('amount', t('The amount must be a number.'));
  }
}