You are here

function hook_taxonomy_menu_block_tree_alter in Taxonomy menu block 7

Alter data of the taxonomy tree before it gets cached.

Here you can add your own data, for example a photo per term. Since this hook is called before all data gets cached, your newly added data will get cached as well, which is good for performance.

Parameters

array $tree: A flat array of taxonomy terms, keyed by their tid. It's very important the keys of this array never get reset, as they are used for nesting the tree, later in the Taxonomy Menu Block module. The order of the terms is still the same as when returned by the taxonomy_get_tree() function.

int $vid: Taxonomy vocabulary id.

1 invocation of hook_taxonomy_menu_block_tree_alter()
taxonomy_menu_block_structure_tree in ./taxonomy_menu_block.module
Structure tree with only the info we need.

File

./taxonomy_menu_block.api.php, line 25
Hooks provided by the Taxonomy Menu Block module.

Code

function hook_taxonomy_menu_block_tree_alter(&$tree, $config) {
}