Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299024

menu_navigation_links() generate a error

$
0
0

I'm try listing a menu navigation links with menu_navigation_links() function, but is generate a follow error:

Notice: Undefined index: localized_options in menu_navigation_links() (line 1860 of /home3/xptoboxc/public_html/drupal/includes/menu.inc).

My code:

<?php
$html
.='<ul id="navigation" class="arrow-list">';
foreach (
menu_navigation_links('navigation') as $menu => $link) {
    if(!empty(
$link['title']))
       
$html .= '<li><a href="'. url($link['href']) . '" title="'. $link['title'] . '">'. $link['title'] . '</a></li>';
}
$html .= '</ul>';
?>

Viewing all articles
Browse latest Browse all 299024

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>