I hope I'm not duplicating another issue post, but I couldn't find one if it exists.

My request is minimal but has caused me grief. I have used Menu per Role on several projects and it works perfectly. The one thing that has always bugged me about it though is that, when enabled, it swaps the position of the save and delete form buttons. I decided to see if I could find out what was causing that and it turned out to be very simple.

On line 64 of menu_per_role.admin.inc the weight of the save button is set to 10. The weight of the delete button is already set to 10, so since they are then sorted alphabetically delete comes before save. I changed line 64 to have a weight of 9 and the buttons are back to the same order as when the module is not installed.

Thankfully we have to confirm that we actually want to delete a menu item or I would be even more frustrated...although this module has made my life a lot easier on multiple occasions!

If this fix could be included in the next release I would REALLY appreciate it.

Comments

AlexisWilke’s picture

Status:Active» Fixed

Hmmm... I use so many modules that I never noticed. I most certainly have another module that fixes the problem because they appeared in the right order (Save then Delete) in my realm.

It's checked in:
http://drupalcode.org/project/menu_per_role.git/commit/0131d23

Thank you.
Alexis Wilke

bocaj’s picture

Thank you! Thank you! Thank you!

Thanks for your work on this module as well!

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.