You are here

function _termcase_vocabulary_termcase_synonyms in Termcase 6

Helper function to get/set the current termcase synonym setting

3 calls to _termcase_vocabulary_termcase_synonyms()
termcase_form_alter in ./termcase.module
Implementation of hook_form_alter().
termcase_taxonomy in ./termcase.module
Implementation of hook_taxonomy().
_termcase_update_all_terms in ./termcase.module
Helper function to loop through all terms in the specified vocabulary and apply the case formatting to each of them

File

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

Code

function _termcase_vocabulary_termcase_synonyms($vid, $synonyms = NULL) {
  if (!is_null($synonyms)) {
    variable_set('taxonomy_vocabulary' . $vid . '_termcase_synonyms', (bool) $synonyms);
  }
  else {
    return variable_get('taxonomy_vocabulary' . $vid . '_termcase_synonyms', FALSE);
  }
}