src/Liip/Drupal/Modules/DrupalConnector/Menu.php
public function menu_tree_page_data($menu_name, $max_depth = NULL, $only_active_trail = FALSE)
    {
        return menu_tree_page_data($menu_name, $max_depth, $only_active_trail);
    }
public function menu_tree_page_data($menu_name, $max_depth = NULL, $only_active_trail = FALSE)
    {
        return menu_tree_page_data($menu_name, $max_depth, $only_active_trail);
    }
public function menu_tree_page_data ( $ menu_name , $ max_depth = NULL , $ only_active_trail = FALSE ) { return menu_tree_page_data ( $ menu_name , $ max_depth , $ only_active_trail ) ; }
Get the data structure representing a named menu tree, based on the current page.

The tree order is maintained by storing each parent in an individual
field, see http://drupal.org/node/141866 for more.

@param $menu_name
The named menu links to return.
@param $max_depth
(optional) The maximum depth of links to retrieve.
@param $only_active_trail
(optional) Whether to only return the links in the active trail (TRUE)
instead of all links on every level of the menu link tree (FALSE). Defaults
to FALSE. Internally used for breadcrumbs only.

@return
An array of menu links, in the order they should be rendered. The array
is a list of associative arrays -- these have two keys, link and below.
link is a menu item, ready for theming as a link. Below represents the
submenu below the link if there is one, and it is a subtree that has the
same structure described for the top-level array.
Get the data structure representing a named menu tree based on the current page .