Search code examples
drupaldrupal-6drupal-theming

Where do i find the code behind for a drupal 6 menu?


I have just taken over a drupal 6 website and need to change a link from an image.

the image is a menu item , but that menu items Path does not change when i change it in the backend. I assume the whole file has been over written but i am not sure where to find this file. I have looked in the "Bartik" themes file with all the .tpl.php files but i cant find anything.

Any help please


Solution

  • The core code behind menu is in includes/menu.inc, you have a problem if someone have overwritten the initial logic there.

    The first thing to know about Drupal is — do not override core behavior.

    The primary theme functions, involved in menu rendering are:

    • theme_menu_item Generate the HTML output for a menu item and submenu.
    • theme_menu_item_link Generate the HTML output for a single menu link.
    • theme_menu_tree Generate the HTML output for a menu tree

    I would recommend to check the source first on api.drupal.org/api/drupal/includesmenu.inc/6

    If none of above makes sense, please check this article to learn, how to override theme functions.