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;
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hgoto created an issue. See original summary.

hgoto’s picture

Issue summary: View changes
hgoto’s picture

Priority: Normal » Minor
Status: Active » Needs review
FileSize
1.47 KB

Here is a short patch for this. (There are some space changes in it but they are not essential)