Menus built with signwriter wont show funny HTML-Code but no rendered Menu-Graphics.

Bad boy ist function basic_menu_item_link()

In Basic there are references to $link['options'] - but drupal/menu.inc refers to $link['localized_options']
After changing this in basic_menu_item_link() the graphics is shown ! Puh !
New code:

function basic_menu_item_link($link) {

  if (empty($link['localized_options'])) {
    $link['localized_options'] = array();
  }
  // If an item is a LOCAL TASK, render it as a tab
  if ($link['type'] & MENU_IS_LOCAL_TASK) {
    $link['title'] = '<span class="tab">'. check_plain($link['title']) .'</span>';
    $link['localized_options']['html'] = TRUE;
  }

  if (empty($link['type'])) {
    $true = TRUE;
  }
  return l($link['title'], $link['href'], $link['localized_options']);
}

Comments

Anonymous’s picture

Thanks, will commit to next version.

Anonymous’s picture

Version: 6.x-2.4 » 6.x-2.6
Assigned: Unassigned »
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.