function uc_reports_sales_custom_form_validate in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_reports/uc_reports.module \uc_reports_sales_custom_form_validate()
- 6.2 uc_reports/uc_reports.admin.inc \uc_reports_sales_custom_form_validate()
Ensure an order status was selected.
See also
uc_reports_sales_custom_form()
uc_reports_sales_custom_form_submit()
File
- uc_reports/
uc_reports.admin.inc, line 1241 - Reports administration menu items.
Code
function uc_reports_sales_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.'));
}
}