Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git diff 8.x
- diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module
- index 8ff3167..c3c4056 100644
- --- a/core/modules/toolbar/toolbar.module
- +++ b/core/modules/toolbar/toolbar.module
- @@ -294,9 +294,8 @@ function toolbar_get_menu_tree() {
- /**
- * Generates an array of links from a menu tree array.
- *
- - * Based on menu_navigation_links(). Adds path based IDs and icon placeholders
- - * to the links.
- - *
- + * Based on menu_navigation_links(). Adds path based IDs to the links.
- + *
- * @return
- * An array of links as defined above.
- */
- @@ -304,14 +303,13 @@ function toolbar_menu_navigation_links($tree) {
- $links = array();
- foreach ($tree as $item) {
- if (!$item['link']['hidden'] && $item['link']['access']) {
- - // Make sure we have a path specific ID in place, so we can attach icons
- - // and behaviors to the items.
- + // Make sure we have a path specific ID in place, so we can attach
- + // behaviors to the items.
- $id = str_replace(array('/', '<', '>'), array('-', '', ''), $item['link']['href']);
- $link = $item['link']['localized_options'];
- $link['href'] = $item['link']['href'];
- - // Add icon placeholder.
- - $link['title'] = '<span class="icon"></span>' . check_plain($item['link']['title']);
- + $link['title'] = check_plain($item['link']['title']);
- // Add admin link ID.
- $link['attributes'] = array('id' => 'toolbar-link-' . $id);
- if (!empty($item['link']['description'])) {
Add Comment
Please, Sign In to add comment