From 3b4e9d4a26413f7710bb4c5c16902c12a4bf7cca Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Thu, 13 Jul 2006 05:32:22 +0000 Subject: [PATCH] Leftovers from #71925: remove # from hook_link keys --- includes/menu.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/menu.inc b/includes/menu.inc index 4545bbd4ed4..190c1311207 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -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']) ."\n"; + $output .= ">". l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment']) ."\n"; } $output .= '';