Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By awmemon on
I have created a custom menu with machine name menu-cmenu and printing it in page.tpl.php with:
$cMenu = menu_navigation_links('menu-cmenu');
print theme('links__menu_cmenu', array('links' => $cMenu));
After reading several threads similar to this, I have created a function named zenc_menu_link in template.php which is supposed to add span tag. But after debugging the code, I find out that zenc_menu_link is never actually called for my custom menu menu-cmenu.
I need some suggestions please to rectify the issue.