You are here

function termcase_taxonomy_vocabulary_insert in Termcase 7

Implements hook_taxonomy_vocabulary_insert().

Adds the termcase setting when adding a new vocabulary.

File

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

Code

function termcase_taxonomy_vocabulary_insert($vocabulary) {
  if (isset($vocabulary->termcase_options)) {
    _termcase_vocabulary_termcase($vocabulary->machine_name, $vocabulary->termcase_options);
  }
}