DrupalBin
Submit Code
About
Recent Posts
Fix for Code
5 hours 28 min
ago
Fix for Code
5 hours 28 min
ago
Code
5 hours 33 min
ago
whole thing
6 hours 25 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Code
View
Download
Fix
August 19, 2008 - 11:07am — Anonymous
$menu_items
=
_menu_get_active_trail
(
)
;
// $menu_items[1] is the top parent of our menu container, e.g. primary links
// this gets the required menu item into an array
$link_array
=
menu_item_link
(
$menu_items
[
1
]
,
FALSE
)
;
// whip out spaces and make the name lower case
$section_name
=
strtolower
(
$link_array
[
'title'
]
)
;