Guest User

Untitled

a guest
Dec 14th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.50 KB | None | 0 0
  1. git diff 8.x
  2. diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module
  3. index 8ff3167..c3c4056 100644
  4. --- a/core/modules/toolbar/toolbar.module
  5. +++ b/core/modules/toolbar/toolbar.module
  6. @@ -294,9 +294,8 @@ function toolbar_get_menu_tree() {
  7.  /**
  8.   * Generates an array of links from a menu tree array.
  9.   *
  10. - * Based on menu_navigation_links(). Adds path based IDs and icon placeholders
  11. - * to the links.
  12. - *
  13. + * Based on menu_navigation_links(). Adds path based IDs to the links.
  14. + *
  15.   * @return
  16.   *   An array of links as defined above.
  17.   */
  18. @@ -304,14 +303,13 @@ function toolbar_menu_navigation_links($tree) {
  19.    $links = array();
  20.    foreach ($tree as $item) {
  21.      if (!$item['link']['hidden'] && $item['link']['access']) {
  22. -      // Make sure we have a path specific ID in place, so we can attach icons
  23. -      // and behaviors to the items.
  24. +      // Make sure we have a path specific ID in place, so we can attach
  25. +      // behaviors to the items.
  26.        $id = str_replace(array('/', '<', '>'), array('-', '', ''), $item['link']['href']);
  27.  
  28.        $link = $item['link']['localized_options'];
  29.        $link['href'] = $item['link']['href'];
  30. -      // Add icon placeholder.
  31. -      $link['title'] = '<span class="icon"></span>' . check_plain($item['link']['title']);
  32. +      $link['title'] = check_plain($item['link']['title']);
  33.        // Add admin link ID.
  34.        $link['attributes'] = array('id' => 'toolbar-link-' . $id);
  35.        if (!empty($item['link']['description'])) {
Add Comment
Please, Sign In to add comment