function taxonomy_manager_form_validate in Taxonomy Manager 7
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()
- 6 taxonomy_manager.admin.inc \taxonomy_manager_form_validate()
validates the form (only search button)
1 call to taxonomy_manager_form_validate()
- taxonomy_manager_double_tree_form_validate in ./
taxonomy_manager.admin.inc - validates taxonomy manager double tree
File
- ./
taxonomy_manager.admin.inc, line 1229
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;
}
}