| Versionen | |
|---|---|
| drupal6 – drupal7 | _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).
modules/
<?php
function _translation_tab_access($node) {
return !empty($node->language) && translation_supported_type($node->type) && node_access('view', $node) && user_access('translate content');
}
?>
Kommentare
Kommentar hinzufügen