1 contact.pages.inc | contact_site_form_validate($form, &$form_state) |
Form validation handler for contact_site_form().
See also
File
- core/
modules/ contact/ contact.pages.inc, line 127 - Page callbacks for the Contact module.
Code
function contact_site_form_validate($form, &$form_state) {
if (!$form_state['values']['cid']) {
form_set_error('cid', t('You must select a valid category.'));
}
}