function taxonomy_manager_form_delete_validate in Taxonomy Manager 7
Same name and namespace in other branches
- 6.2 taxonomy_manager.admin.inc \taxonomy_manager_form_delete_validate()
- 6 taxonomy_manager.admin.inc \taxonomy_manager_form_delete_validate()
Validation handler for deleting terms
1 string reference to 'taxonomy_manager_form_delete_validate'
- taxonomy_manager_confirm_delete in ./
taxonomy_manager.admin.inc - confirmation form for deleting selected terms
File
- ./
taxonomy_manager.admin.inc, line 1406
Code
function taxonomy_manager_form_delete_validate($form, &$form_state) {
$selected_tids = array();
$selected_tids = $form_state['values']['taxonomy']['manager']['tree']['selected_terms'];
if (count($selected_tids) < 1) {
form_set_error('delete', t("No terms for deleting selected"));
$form_state['rebuild'] = TRUE;
}
}