function entity_translation_taxonomy_term_tab_access in Entity Translation 7
Taxonomy term specific access callback.
2 string references to 'entity_translation_taxonomy_term_tab_access'
- entity_translation_entity_info in ./
entity_translation.module - Implements hook_entity_info().
- entity_translation_taxonomy_term_menu_alter in ./
entity_translation.taxonomy.inc - Taxonomy-term-specific menu alterations.
File
- ./
entity_translation.taxonomy.inc, line 51 - The taxonomy specific translation functions and hook implementations.
Code
function entity_translation_taxonomy_term_tab_access() {
$args = func_get_args();
$term = array_shift($args);
if (entity_translation_enabled('taxonomy_term', $term)) {
return entity_translation_tab_access('taxonomy_term', $term);
}
else {
$function = array_shift($args);
return $function ? call_user_func_array($function, $args) : FALSE;
}
}