Pedro Posada | Sample output for menu_get_active_trail() in drupal

Sample output for menu_get_active_trail() in drupal

Posted on November 3, 2010 - 9:57am
<< 4 of 54 >>

<?php
Array
(
    [
0] => Array
        (
            [
title] => Home
           
[href] =>
            [
localized_options] => Array
                (
                )

            [
type] => 0
       
)

    [
1] => Array
        (
            [
load_functions] =>
            [
to_arg_functions] =>
            [
access_callback] => _node_add_access
           
[access_arguments] => a:0:{}
            [
page_callback] => node_add_page
           
[page_arguments] => a:0:{}
            [
title] => Create content
           
[title_callback] => t
           
[title_arguments] =>
            [
type] => 6
           
[description] =>
            [
menu_name] => navigation
           
[mlid] => 11
           
[plid] => 0
           
[link_path] => node/add
           
[router_path] => node/add
           
[link_title] => Create content
           
[options] => Array
                (
                )

            [
module] => system
           
[hidden] => 0
           
[external] => 0
           
[has_children] => 1
           
[expanded] => 0
           
[weight] => 1
           
[depth] => 1
           
[customized] => 0
           
[p1] => 11
           
[p2] => 0
           
[p3] => 0
           
[p4] => 0
           
[p5] => 0
           
[p6] => 0
           
[p7] => 0
           
[p8] => 0
           
[p9] => 0
           
[updated] => 0
           
[in_active_trail] => 1
           
[href] => node/add
           
[access] => 1
           
[localized_options] => Array
                (
                )

        )

    [
2] => Array
        (
            [
load_functions] =>
            [
to_arg_functions] =>
            [
access_callback] => node_access
           
[access_arguments] => a:2:{i:0;s:6:"create";i:1;s:4:"page";}
            [
page_callback] => node_add
           
[page_arguments] => a:1:{i:0;i:2;}
            [
title] => Page
           
[title_callback] => check_plain
           
[title_arguments] =>
            [
type] => 6
           
[description] => A page, similar in form to a story, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a page entry does not allow visitor comments and is not featured on the sites initial home page.
            [
menu_name] => navigation
           
[mlid] => 106
           
[plid] => 11
           
[link_path] => node/add/page
           
[router_path] => node/add/page
           
[link_title] => Page
           
[options] => Array
                (
                    [
attributes] => Array
                        (
                            [
title] => A page, similar in form to a story, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a page entry does not allow visitor comments and is not featured on the sites initial home page.
                        )

                )

            [
module] => system
           
[hidden] => 0
           
[external] => 0
           
[has_children] => 0
           
[expanded] => 0
           
[weight] => 0
           
[depth] => 2
           
[customized] => 0
           
[p1] => 11
           
[p2] => 106
           
[p3] => 0
           
[p4] => 0
           
[p5] => 0
           
[p6] => 0
           
[p7] => 0
           
[p8] => 0
           
[p9] => 0
           
[updated] => 0
           
[in_active_trail] => 1
           
[href] => node/add/page
           
[access] => 1
           
[localized_options] => Array
                (
                    [
attributes] => Array
                        (
                            [
title] => A page, similar in form to a story, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a page entry does not allow visitor comments and is not featured on the sites initial home page.
                        )

                    [
html] => 1
               
)

        )

)
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.