You are here

function taxonomy_manager_form_delete_validate in Taxonomy Manager 6

Same name and namespace in other branches
  1. 6.2 taxonomy_manager.admin.inc \taxonomy_manager_form_delete_validate()
  2. 7 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 821

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;
  }
}