I want to use custom validation while adding a term. I used form alter and #validate function it's not working.Default validation function under taxonomy module is working but my custom validate function is not.
Here is my code
function lms2_validate_form_alter($form , &$form_state, $form_id){
if ($form_id == 'taxonomy_form_term'){
$form['#validate'][] = 'lms2_validate_term_validate';
}
}
function lms2_validate_term_validate($form ,&$form_state){
drupal_set_message('hello');
}