function _translation_tab_access
7.x translation.module | _translation_tab_access($node) |
6.x translation.module | _translation_tab_access($node) |
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 drupal-6.x/
modules/ translation/ translation.module - Implementation of hook_menu().
File
- drupal-6.x/
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');
}