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.
Currently primary links output is being generated by direct use of theme('item_list') or theme('links') - we should have wrapper functions which do that for us.
This would also make it easier to add "Welcome, $username" in plain text to the 'user links' menu without messing about in hook_preprocess_page().
Comments
Comment #1
catch#408150: Add "Welcome, $username" to user links is postponed on this issue.
Comment #2
sunWhat we really want is support for sub-theme functions. theme() should check for theme_MENU_NAME_menu_links() in front of invoking theme_menu_links().
That way, all menus can be rendered differently and there is no special logic for some arbitrary menus.
Comment #3
catchWe just did this for theme_links(), any reason not to add the same here?
Comment #4
sunoopsie. I forgot about this issue - there's a patch in #634472: Menus cannot be themed differently
Comment #5
catch