DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
sub menu
Sub menu in an array
February 24, 2009 - 7:23pm — Anonymous
<?php
$tree
=
menu_tree_page_data
(
'menu-main-navigation'
)
;
foreach
(
$tree
as
$key
=
>
$menu
)
{
if
(
is_array
(
$menu
[
link
]
)
&&
!
empty
(
$menu
[
link
]
[
in_active_trail
]
)
)
{
how to
sub menu
Read more
How to Create a Full Sub Menu starting from the second level of Nav using the default menu theme
February 21, 2009 - 10:39pm — Anonymous
<?php
$tree
=
menu_tree_page_data
(
variable_get
(
'menu_primary_links_source'
,
'primary-links'
)
)
;
foreach
(
$tree
as
$key
=
>
$menu
)
{
menu
sub menu
submenu
Read more