Leftovers from #71925: remove # from hook_link keys

5.x
Steven Wittens 2006-07-13 05:32:22 +00:00
parent aca5f5a1c1
commit 3b4e9d4a26
1 changed files with 6 additions and 6 deletions

View File

@ -720,9 +720,9 @@ function menu_item_link($mid, $theme = TRUE) {
}
else {
$link = array(
'#title' => $item['title'],
'#href' => $link_item['path'],
'#attributes' => isset($item['description']) ? array('title' => $item['description']) : array()
'title' => $item['title'],
'href' => $link_item['path'],
'attributes' => isset($item['description']) ? array('title' => $item['description']) : array()
);
}
@ -869,8 +869,8 @@ function menu_primary_links($start_level = 1, $pid = 0) {
// Special case - provide link to admin/menu if primary links is empty.
if (empty($links) && $start_level == 1 && $pid == variable_get('menu_primary_menu', 0)) {
$links['1-1'] = array(
'#title' => t('edit primary links'),
'#href' => 'admin/menu'
'title' => t('edit primary links'),
'href' => 'admin/menu'
);
}
@ -923,7 +923,7 @@ function theme_menu_links($links) {
if (stristr($index, 'active')) {
$output .= ' class="active"';
}
$output .= ">". l($link['#title'], $link['#href'], $link['#attributes'], $link['#query'], $link['#fragment']) ."</li>\n";
$output .= ">". l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment']) ."</li>\n";
}
$output .= '</ul>';