summaryrefslogtreecommitdiff
path: root/includes/menu.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/menu.inc')
-rw-r--r--includes/menu.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 2a8d9959f..a345f58a7 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -1084,6 +1084,11 @@ function _menu_tree_cid($menu_name, $data) {
/**
* 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) {
foreach ($tree as $key => $v) {
@@ -1102,6 +1107,12 @@ 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()) {