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.
tweme\includes\menu.inc
function tweme_menu_tree__main_menu($vars)
function tweme_menu_link__main_menu($vars)
Why there has a trailing __main_menu for the override menu function?
Comments
Comment #1
anydigital CreditAttribution: anydigital commentedThat means these functions will be invoked only for main menu - not for all menus on the site.
Comment #2
adrianmak CreditAttribution: adrianmak commentedI don't know there is such a function override naming in drupal.
where could I find such information ? I could not get these kind of function overriding mentioned from google
Comment #3
anydigital CreditAttribution: anydigital commentedUnfortunately this feature is not documented yet.
Some information could be found here: http://drupal.org/node/254940#theme-suggestions-for-menus.