function uc_reports_products_custom_form_validate in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_reports/uc_reports.module \uc_reports_products_custom_form_validate()
- 6.2 uc_reports/uc_reports.admin.inc \uc_reports_products_custom_form_validate()
Validation handler for the custom product report.
See also
uc_reports_products_custom_form()
uc_reports_products_custom_form_submit()
File
- uc_reports/
uc_reports.admin.inc, line 558 - Reports administration menu items.
Code
function uc_reports_products_custom_form_validate($form, &$form_state) {
if (empty($form_state['values']['status'])) {
form_set_error('status', t('You must select at least one order status.'));
}
}