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
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

AttachmentSize
simplemenu.patch2.79 KB

#1

Anselm Heaton - June 28, 2009 - 11:36

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

moshe weitzman - August 19, 2009 - 14:41

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

cyoong87 - October 12, 2009 - 09:47
Version:6.x-1.2» 5.x-5.0

Does the patch work for D5?

 
 

Drupal is a registered trademark of Dries Buytaert.