function content_taxonomy_et_content_taxonomy_tree_callback_alter in Content Taxonomy 7
Implements hook_content_taxonomy_tree_callback_alter().
File
- ./
content_taxonomy_et.module, line 11 - Entity Translation integration for taxonomy terms.
Code
function content_taxonomy_et_content_taxonomy_tree_callback_alter(&$tree_callback, $field, $vocabulary) {
// Checks whether the Entity Translation mode with the title field is enabled,
// if so, replace the tree callback with our custom language specific
// implementation.
if (title_field_replacement_enabled('taxonomy_term', $vocabulary->machine_name, 'name')) {
$tree_callback = 'content_taxonomy_et_get_tree';
}
}