diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-12 23:42:59 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-12 23:42:59 +0000 |
commit | 5a0ea2d5c3e9c76e96291cfd916c2e2a3bb8a3aa (patch) | |
tree | d89f57eb03dbdc4b60a6a28e186c90f76d7a2efb | |
parent | 1b1fb73c832f4126038e5fe36cf8893e218e1414 (diff) | |
download | brdo-5a0ea2d5c3e9c76e96291cfd916c2e2a3bb8a3aa.tar.gz brdo-5a0ea2d5c3e9c76e96291cfd916c2e2a3bb8a3aa.tar.bz2 |
#510094 by mgifford and pp: Add description to the link items of Toolbar module.
-rw-r--r-- | modules/toolbar/toolbar.module | 4 |
1 files changed, 4 insertions, 0 deletions
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'] = '<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; |