From 5a0ea2d5c3e9c76e96291cfd916c2e2a3bb8a3aa Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 12 Dec 2009 23:42:59 +0000 Subject: #510094 by mgifford and pp: Add description to the link items of Toolbar module. --- modules/toolbar/toolbar.module | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module index 5543f8b3a..1a6fe7000 100644 --- a/modules/toolbar/toolbar.module +++ b/modules/toolbar/toolbar.module @@ -283,6 +283,10 @@ function toolbar_menu_navigation_links($tree) { $link['title'] = '' . $item['link']['title']; // Add admin link ID and to-overlay class for the overlay. $link['attributes'] = array('id' => 'toolbar-link-' . $id, 'class' => array('to-overlay')); + if (!empty($item['link']['description'])) { + $link['title'] .= ' (' . $item['link']['description'] . ')'; + $link['attributes']['title'] = $item['link']['description']; + } $link['html'] = TRUE; $class = ' path-' . $id; -- cgit v1.2.3