You are here

function _module_grants_translation_tab_access in Module Grants 6.3

Similar to _translation_tab_access(), but uses module_grants_node_access() instead of node_access().

Parameters

$node: The node for which translation tab access is checked

1 string reference to '_module_grants_translation_tab_access'
module_grants_menu_alter in ./module_grants.module
Implementation of hook_menu_alter().

File

./module_grants.module, line 153
Module to apply access grants to pre-published content just as they are to published content and to make multiple content access modules work together in the expected way.

Code

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