You are here

function taxonomy_manager_form_move_validate in Taxonomy Manager 6

Same name and namespace in other branches
  1. 6.2 taxonomy_manager.admin.inc \taxonomy_manager_form_move_validate()
  2. 7 taxonomy_manager.admin.inc \taxonomy_manager_form_move_validate()

Validation handler for moving terms

1 string reference to 'taxonomy_manager_form_move_validate'
taxonomy_manager_move_form in ./taxonomy_manager.admin.inc
form for moving terms in hierarchies

File

./taxonomy_manager.admin.inc, line 888

Code

function taxonomy_manager_form_move_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('move', t("Please selected terms you want to move in the hierarchy"));
    $form_state['rebuild'] = TRUE;
  }
}