function taxonomy_manager_form_validate in Taxonomy Manager 6
Same name and namespace in other branches
- 5 taxonomy_manager.module \taxonomy_manager_form_validate()
- 6.2 taxonomy_manager.admin.inc \taxonomy_manager_form_validate()
- 7 taxonomy_manager.admin.inc \taxonomy_manager_form_validate()
validates the form (only search button)
File
- ./
taxonomy_manager.admin.inc, line 758
Code
function taxonomy_manager_form_validate($form, &$form_state) {
if ($form_state['clicked_button']['#value'] == t('Search') && empty($form_state['values']['search']['field'])) {
form_set_error('search', t('Search field is empty'));
$form_state['rebuild'] = TRUE;
}
}