From 5a0ea2d5c3e9c76e96291cfd916c2e2a3bb8a3aa Mon Sep 17 00:00:00 2001 From: Angie Byron <webchick@24967.no-reply.drupal.org> Date: Sat, 12 Dec 2009 23:42:59 +0000 Subject: [PATCH] #510094 by mgifford and pp: Add description to the link items of Toolbar module. --- modules/toolbar/toolbar.module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module index 5543f8b3a813..1a6fe70001d4 100644 --- a/modules/toolbar/toolbar.module +++ b/modules/toolbar/toolbar.module @@ -283,6 +283,10 @@ function toolbar_menu_navigation_links($tree) { $link['title'] = '<span class="icon"></span>' . $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'] .= ' <span class="element-invisible">(' . $item['link']['description'] . ')</span>'; + $link['attributes']['title'] = $item['link']['description']; + } $link['html'] = TRUE; $class = ' path-' . $id; -- GitLab