Closed (won't fix)
Project:
Menu Per Role
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2007 at 18:24 UTC
Updated:
2 Jan 2011 at 01:18 UTC
The following patch extends menu_per_role_form_alter() to attach the menu_per_role form items to a node create / node edit form.
It requires a minor change in menu_per_role_form_submit(), since the menu data is nested inside a 'menu' array when coming from the node form.
| Comment | File | Size | Author |
|---|---|---|---|
| mpr.patch | 1.71 KB | agentrickard |
Comments
Comment #1
agentrickardComment #2
fagohm, a nice feature, however I'm a bit worried that users don't like it there.
Could you add a new permission "Modify menu item access" or similar as well as checks for this permission to the module?
Then administrators could disable this for some users.
Comment #3
agentrickardMakes sense. I even thought of that. So menu_per_role() would have a setting:
[] show menu options on node forms
Or should this be an access control rule?
"assign during node edit"
Comment #4
fagoI can think of two ways:
* add an access control permission like "Modify menu item access" - which would in affect allow one to remove it from node forms for certain users based on roles
* we create a settings page and add the setting "show menu options on node forms" *AND* add the access control permission from above.
Comment #5
AlexisWilke commentedThis is 3 years old... I'm closing it. Hopefully you'll be able to upgrade to 6.x and get that resolved. There are no 5.x maintainers.
Comment #6
AlexisWilke commentedLooks like I missed changing the status... 8-)