You are here

function i18n_taxonomy_vocabulary_translation_tab_sets_access in Internationalization 7

Menu access callback for vocabulary translation tab. Show tab only for full multilingual vocabularies.

1 string reference to 'i18n_taxonomy_vocabulary_translation_tab_sets_access'
i18n_taxonomy_menu in i18n_taxonomy/i18n_taxonomy.module
Implements hook_menu().

File

i18n_taxonomy/i18n_taxonomy.module, line 157
i18n taxonomy module

Code

function i18n_taxonomy_vocabulary_translation_tab_sets_access($vocabulary) {
  return user_access('administer taxonomy') && i18n_taxonomy_vocabulary_mode($vocabulary->vid, I18N_MODE_TRANSLATE);
}