You are here

function _termcase_vocabulary_termcase in Termcase 6

Same name and namespace in other branches
  1. 7 termcase.module \_termcase_vocabulary_termcase()

Helper function to get/set the current termcase setting

4 calls to _termcase_vocabulary_termcase()
termcase_form_alter in ./termcase.module
Implementation of hook_form_alter().
termcase_taxonomy in ./termcase.module
Implementation of hook_taxonomy().
theme_termcase_overview_vocabularies in ./termcase.module
Override of the vocabulary overview to display the current termcase settings for each vocabulary.
_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 289
The Termcase module gives you the option to specify specific case-formatting on terms.

Code

function _termcase_vocabulary_termcase($vid, $termcase = NULL) {
  if (!is_null($termcase)) {
    variable_set('taxonomy_vocabulary' . $vid . '_termcase', (int) $termcase);
  }
  else {
    return variable_get('taxonomy_vocabulary' . $vid . '_termcase', TERMCASE_NONE);
  }
}