You are here

function termcase_taxonomy_term_update in Termcase 7

Implements hook_taxonomy_term_update().

Converts the term to the current termcase settings when changing it.

File

./termcase.module, line 223
The Termcase module gives you the option to specify specific case-formatting on terms.

Code

function termcase_taxonomy_term_update($term) {
  $term->name = _termcase_convert_string_to_case($term->name, _termcase_vocabulary_termcase($term->vocabulary_machine_name));
  _termcase_update_term_name($term);
}