function termcase_taxonomy_term_insert in Termcase 7
Implements hook_taxonomy_term_insert().
Converts the term to the current termcase settings when adding it.
File
- ./
termcase.module, line 212 - The Termcase module gives you the option to specify specific case-formatting on terms.
Code
function termcase_taxonomy_term_insert($term) {
$term->name = _termcase_convert_string_to_case($term->name, _termcase_vocabulary_termcase($term->vocabulary_machine_name));
_termcase_update_term_name($term);
}