function uc_payment_pack_receive_check_form_validate in Ubercart 6.2
Same name and namespace in other branches
- 5 payment/uc_payment_pack/uc_payment_pack.module \uc_payment_pack_receive_check_form_validate()
Form validation for uc_payment_pack_receive_check_form().
See also
uc_payment_pack_receive_check_form()
uc_payment_pack_receive_check_form_submit()
File
- payment/
uc_payment_pack/ uc_payment_pack.admin.inc, line 96 - Payment pack administration menu items.
Code
function uc_payment_pack_receive_check_form_validate($form, &$form_state) {
if (!$form_state['values']['check_exists'] && !is_numeric($form_state['values']['amount'])) {
form_set_error('amount', t('The amount must be a number.'));
}
}