Commit f7b8a6c5 authored by webchick's avatar webchick
Browse files

#540282 follow-up by David_Rothstein: Removed accidentally introduced menu...

#540282 follow-up by David_Rothstein: Removed accidentally introduced menu module dependency from toolbar module.
parent a558be65
......@@ -159,13 +159,13 @@ function toolbar_build() {
);
// Retrieve the admin menu from the database.
$main_menu = menu_load('management');
$links = toolbar_menu_navigation_links(toolbar_get_menu_tree());
$system_menus = menu_list_system_menus();
$build['toolbar_menu'] = array(
'#theme' => 'links',
'#links' => $links,
'#attributes' => array('id' => 'toolbar-menu'),
'#heading' => array('text' => $main_menu['title'], 'level' => 'h2', 'class' => 'element-invisible'),
'#heading' => array('text' => t($system_menus['management']), 'level' => 'h2', 'class' => 'element-invisible'),
);
// Add logout & user account links or login link
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment