function _termcase_vocabulary_termcase_display_notice in Termcase 6
Helper function to get/set the current termcase display notice setting
2 calls to _termcase_vocabulary_termcase_display_notice()
- termcase_form_alter in ./
termcase.module - Implementation of hook_form_alter().
- termcase_taxonomy in ./
termcase.module - Implementation of hook_taxonomy().
File
- ./
termcase.module, line 313 - The Termcase module gives you the option to specify specific case-formatting on terms.
Code
function _termcase_vocabulary_termcase_display_notice($vid, $display_notice = NULL) {
if (!is_null($display_notice)) {
variable_set('taxonomy_vocabulary' . $vid . '_termcase_display_notice', (bool) $display_notice);
}
else {
return variable_get('taxonomy_vocabulary' . $vid . '_termcase_display_notice', FALSE);
}
}