You are here

function _translation_tab_access in Drupal 6

Same name and namespace in other branches
  1. 7 modules/translation/translation.module \_translation_tab_access()

Menu access callback.

Only display translation tab for node types, which have translation enabled and where the current node is not language neutral (which should span all languages).

1 string reference to '_translation_tab_access'
translation_menu in modules/translation/translation.module
Implementation of hook_menu().

File

modules/translation/translation.module, line 77
Manages content translations.

Code

function _translation_tab_access($node) {
  return !empty($node->language) && translation_supported_type($node->type) && node_access('view', $node) && user_access('translate content');
}