function uc_usps_admin_settings_validate in Ubercart 6.2
Same name and namespace in other branches
- 7.3 shipping/uc_usps/uc_usps.admin.inc \uc_usps_admin_settings_validate()
Validation handler for uc_usps_admin_settings form.
See also
uc_usps_admin_settings_submit()
File
- shipping/
uc_usps/ uc_usps.admin.inc, line 151 - USPS administration menu items.
Code
function uc_usps_admin_settings_validate($form, &$form_state) {
if (!is_numeric($form_state['values']['uc_usps_markup'])) {
form_set_error('uc_usps_markup', t('Rate markup must be a numeric value.'));
}
}