Allow for more than one menu (patch)
Anselm Heaton - June 28, 2009 - 11:27
| Project: | SimpleMenu |
| Version: | 5.x-5.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hello,
The attached patch allows SimpleMenu to display more than one menu (or sub-menu) in it's menu bar. When several menus are displayed, they are displayed under a drop down of the menu name.
Amongst other uses, this allows site admins to create a custom menu for each role. A given users will then see only the menus that match his or her roles (this effectively fixes the "Menu based on role" issue http://drupal.org/node/208176 ).
Thank you for this great module, hope you find this patch useful :)
Anselm
| Attachment | Size |
|---|---|
| simplemenu.patch | 2.79 KB |

#1
Note that this renders the "add devel module links" option redundant, as you can simply add the devel menu. I have not however removed the option, as I think it's up to the maintainer to see how s/he best wishes to deal with that issue.
#2
I agree that removing special devel handling as proposed here makes sense.
Also, time for a new release of this module. Lots of updates since December 2008.
#3
Does the patch work for D5?