Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Thank you for the cool module.
A hook function sample in .api.php seems to have a different argument name from the comment.
/**
* Alter data of the taxonomy tree before it gets cached.
*
* ...
*
* @param int $vid
* Taxonomy vocabulary id.
*/
function hook_taxonomy_menu_block_tree_alter(&$tree, $config) {
}
The second parameter $config
should be $vid
, probably.
The following is the excerpt of the code which invokes the hook functions.
function taxonomy_menu_block_structure_tree($data, $vid, $lang = NULL) {
// ...
// Let other modules alter the tree data before it gets cached.
drupal_alter('taxonomy_menu_block_tree', $tree, $vid);
return $tree;
}
Comment | File | Size | Author |
---|---|---|---|
#3 | taxonomy_menu_block-fix_inconsistent_function_signature-2829222-3.patch | 1.47 KB | hgoto |
Comments
Comment #2
hgoto CreditAttribution: hgoto as a volunteer and at Studio Umi commentedComment #3
hgoto CreditAttribution: hgoto at Studio Umi commentedHere is a short patch for this. (There are some space changes in it but they are not essential)