Closed (fixed)
Project:
Menu Per Role
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Anonymous (not verified)
Created:
12 Apr 2007 at 16:00 UTC
Updated:
6 Jul 2016 at 22:22 UTC
Installation
------------
Unfortunately you need to patch the drupal file includes/menu.inc. Use the the patch
provided with the module. If you don't know how to patch, you can just insert the three
additional lines manually - but remove the leading plus.Then copy the module's whole directory in your drupal modules directory and activate it.
I'm sorry, but I'm not sure what to do here. Was I suppose to put this:
+ if (module_exists('menu_per_role') && !is_null($access = menu_per_role_access($item->mid))) {
+ $_menu['items'][$item->mid]['access'] = isset($_menu['items'][$item->mid]['access']) ? $_menu['items'][$item->mid]['access'] && $access : $access;
+ }
$_menu['items'][$item->mid]['title'] = $item->title;
$_menu['items'][$item->mid]['description'] = $item->description;
$_menu['items'][$item->mid]['pid'] = $item->pid;minus the "+" at the end of menu.inc?
The language wasn't clear to me. Could you please be more specific. Thank you....
Comments
Comment #1
chayner commentedIn the patch file, there is a line like:
@@ -1129,6 +1129,9 @@That indicates the line where the patch needs to be placed. In this case, it is line 1129 of menu.inc. On or around that line, you will see code like:
And insert the lines with the "+" signs in the appropriate place, like so:
If you still have any questions, don't hesitate to ask!
Comment #2
infamousurge commentedthanks for the info, much appreciated!