diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-14 16:52:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-14 16:52:27 +0000 |
commit | 520d8e6e9202f53bad53d4bdaf56ac1d78aba2f6 (patch) | |
tree | 6abfea7f34b7a7decb63499c9e6de599d39ef536 /modules | |
parent | 336d35e29915c2d7be0846bdfb48632ba99d18dd (diff) | |
download | brdo-520d8e6e9202f53bad53d4bdaf56ac1d78aba2f6.tar.gz brdo-520d8e6e9202f53bad53d4bdaf56ac1d78aba2f6.tar.bz2 |
- Patch #615148 by casey: remove overlay-related cruft from toolbar module.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/toolbar/toolbar.module | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module index b75790216..0c8ad802c 100644 --- a/modules/toolbar/toolbar.module +++ b/modules/toolbar/toolbar.module @@ -282,14 +282,13 @@ function toolbar_get_menu_tree() { /** * Generate a links array from a menu tree array. * - * Based on menu_navigation_links(). Adds in path based IDs, icon placeholders - * and overlay classes for the links. + * Based on menu_navigation_links(). Adds path based IDs and icon placeholders + * to the links. */ function toolbar_menu_navigation_links($tree) { $links = array(); foreach ($tree as $item) { if (!$item['link']['hidden'] && $item['link']['access']) { - $class = ''; // Make sure we have a path specific ID in place, so we can attach icons // and behaviors to the items. $id = str_replace(array('/', '<', '>'), array('-', '', ''), $item['link']['href']); @@ -298,8 +297,8 @@ function toolbar_menu_navigation_links($tree) { $link['href'] = $item['link']['href']; // Add icon placeholder. $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')); + // Add admin link ID. + $link['attributes'] = array('id' => 'toolbar-link-' . $id); if (!empty($item['link']['description'])) { $link['title'] .= ' <span class="element-invisible">(' . $item['link']['description'] . ')</span>'; $link['attributes']['title'] = $item['link']['description']; |