You are here

function entity_translation_node_tab_access in Entity Translation 7

Node specific access callback.

2 string references to 'entity_translation_node_tab_access'
entity_translation_entity_info in ./entity_translation.module
Implements hook_entity_info().
entity_translation_node_menu_alter in ./entity_translation.node.inc
Node-specific menu alterations.

File

./entity_translation.node.inc, line 64
The node specific translation functions and hook implementations.

Code

function entity_translation_node_tab_access() {
  $args = func_get_args();
  $node = array_shift($args);
  if (entity_translation_node('node', $node)) {
    $function = array_shift($args);
    return call_user_func_array($function, $args);
  }
  else {
    return entity_translation_tab_access('node', $node);
  }
}