Closed (fixed)
Project:
Basic
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
7 Aug 2009 at 12:54 UTC
Updated:
7 Sep 2009 at 23:30 UTC
Jump to comment: Most recent
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
Comment #1
Anonymous (not verified) commentedThanks, will commit to next version.
Comment #2
Anonymous (not verified) commented