Gets the active trail (path to root menu root) of the current page.
If a trail is supplied to menu_set_active_trail(), that value is returned. If a trail is not supplied to menu_set_active_trail(), the path to the current page is calculated and returned. The calculated trail is also saved as a static value for use by subsequent calls to menu_get_active_trail().
Path to menu root of the current page, as an array of menu link items, starting with the site's home page. Each link item is an associative array with the following components:
function menu_get_active_trail() {
return menu_set_active_trail();
}