You are here

function _termcase_vocabulary_termcase in Termcase 7

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

Helper function to get/set the current termcase setting.

8 calls to _termcase_vocabulary_termcase()
termcase_form_taxonomy_form_term_alter in ./termcase.module
Implements hook_form_FORM_ID_alter().
termcase_form_taxonomy_form_vocabulary_alter in ./termcase.module
Implements hook_form_FORM_ID_alter().
termcase_install in ./termcase.install
Implements hook_install().
termcase_taxonomy_term_insert in ./termcase.module
Implements hook_taxonomy_term_insert().
termcase_taxonomy_term_update in ./termcase.module
Implements hook_taxonomy_term_update().

... See full list

File

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

Code

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