function uc_cart_cart_settings_form_validate in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_cart/uc_cart.admin.inc \uc_cart_cart_settings_form_validate()
- 7.3 uc_cart/uc_cart.admin.inc \uc_cart_cart_settings_form_validate()
File
- uc_cart/
uc_cart.module, line 803
Code
function uc_cart_cart_settings_form_validate($form_id, $form_values) {
if (!is_numeric($form_values['uc_minimum_subtotal']) || $form_values['uc_minimum_subtotal'] < 0 || $form_values['uc_minimum_subtotal'] === '-0') {
form_set_error('uc_minimum_subtotal', t('Minimum order subtotal should be a non-negative number.'));
}
}