[support] Menu question

sander-martijn sander at sander-martijn.com
Fri Aug 17 15:37:03 UTC 2007


yeah, tried that too but i'm still not understanding something.  No 
matter what I put in that (tried a variety of options in case i was 
misunderstanding what the args do) I either get just the top level or I 
get nothing:


menu_primary_links()
Array
(
    [menu-1-1-2] => Array
        (
            [title] => Photo Gallery
            [href] => node/2
            [attributes] => Array
                (
                )

        )

    [menu-1-2-2] => Array
        (
            [title] => Floor Plans
            [href] => node/5
            [attributes] => Array
                (
                )

        )

)
menu_primary_links(1)
Array
(
    [menu-1-1-2] => Array
        (
            [title] => Photo Gallery
            [href] => node/2
            [attributes] => Array
                (
                )

        )

    [menu-1-2-2] => Array
        (
            [title] => Floor Plans
            [href] => node/5
            [attributes] => Array
                (
                )

        )

)
menu_primary_links(2)
menu_primary_links(1,2)
Array
(
    [menu-1-1-2] => Array
        (
            [title] => Photo Gallery
            [href] => node/2
            [attributes] => Array
                (
                )

        )

    [menu-1-2-2] => Array
        (
            [title] => Floor Plans
            [href] => node/5
            [attributes] => Array
                (
                )

        )

)
menu_primary_links(2,1)
Array
(
)



Eric Mckenna wrote:
> Heh.. sorry about that.  I didn't read you email close enough.  One 
> thing that might help is that you can use menu_primary_links() , 
> http://api.drupal.org/api/function/menu_primary_links/5,
> to get the children.
>
>   
trimming thread, it's getting long


More information about the support mailing list