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.
I improved the documentation for menu_tree_collect_node_links() and menu_tree_check_access():
/**
* Recursive helper function - collect node links.
*
* @param $tree
* The menu tree you wish to collect node links from.
* @param $node_links
* An array in which to store the collected node links.
*/
function menu_tree_collect_node_links(&$tree, &$node_links) {
/**
* Check access and perform other dynamic operations for each link in the tree.
*
* @param $tree
* The menu tree you wish to operate on.
* @param $node_links
* A collection of node link references generated from $tree by
* menu_tree_collect_node_links().
*/
function menu_tree_check_access(&$tree, $node_links = array()) {
Comment | File | Size | Author |
---|---|---|---|
improve_menu_inc_documentation-D6.patch | 1.12 KB | brianV | |
improve_menu_inc_documentation-D7.patch | 1.15 KB | brianV | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Moving to D6 for Gabor. Thanks Brian.
Comment #2
Gábor HojtsyCommitted to Drupal 6 too, thanks.