function entity_translation_taxonomy_term_enabled_vocabulary in Entity Translation 7
Returns whether the given taxonomy vocabulary has support for translations.
Return value
bool TRUE if translation is enabled, FALSE otherwise.
1 string reference to 'entity_translation_taxonomy_term_enabled_vocabulary'
- entity_translation_entity_info in ./
entity_translation.module - Implements hook_entity_info().
File
- ./
entity_translation.taxonomy.inc, line 14 - The taxonomy specific translation functions and hook implementations.
Code
function entity_translation_taxonomy_term_enabled_vocabulary($vocabulary_name) {
$info = variable_get('entity_translation_taxonomy', array());
return !empty($info[$vocabulary_name]);
}