You are here

function i18n_taxonomy_term_translation_tab_access in Internationalization 7

Menu access callback for term translation tab. Show tab only for translatable terms

@todo This should work also for localizable terms when we've got that part implemented

File

i18n_taxonomy/i18n_taxonomy.module, line 166
i18n taxonomy module

Code

function i18n_taxonomy_term_translation_tab_access($term) {
  return taxonomy_term_edit_access($term) && i18n_taxonomy_vocabulary_mode($term->vid) & I18N_MODE_MULTIPLE && user_access('translate interface');
}