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.
The menu item added in menu_example.module that was intended to show how to add items to a non-default menu ('Menu Example: Menu in alternate menu') does not work.
The example attempts to add it to primary-links, but I think that is gone in D7 (see: https://api.drupal.org/api/drupal/modules%21menu%21menu.install/function...). Changing 'primary-links' to 'main-menu' seems to fix the issue.
Comment | File | Size | Author |
---|---|---|---|
#6 | example-fix_alternate_menu_example-2596863-6-D7.patch | 1.43 KB | sdstyles |
| |||
#2 | example-fix_alternate_menu_example-2596863-2-D7.patch | 601 bytes | milodesc |
Comments
Comment #2
milodescComment #3
milodescComment #4
milodescComment #5
Mile23This text needs updating as well, so it mentions the main menu instead of Primary Links.
Also we need to test two things:
examples/menu_example_alternate_menu
is accessible. (That is, you get a 200 when you go to it.)Un-assigning @milodesc, marking Novice and Needs tests so that someone else can work on this if they want to. Re-assign yourself, @milodesc, if you'd like to continue.
Thanks!
Comment #6
sdstyles CreditAttribution: sdstyles at FFW commentedComment #7
Mile23Nice, thanks!
Committed.