Closed (fixed)
Project:
Menu Per Role
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2007 at 16:22 UTC
Updated:
21 Apr 2007 at 14:17 UTC
All,
I am using a WIN interface, had to patch manually, and am having trouble getting the patched code to work properly. Could someone verify that this code is correct (or provide me a snippet from the menu.inc file).
Thanks,
UI Guy
// If the administrator has changed the item, reflect the change.
if ($item->type & MENU_MODIFIED_BY_ADMIN) {
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;
$_menu['items'][$item->mid]['weight'] = $item->weight;
$_menu['items'][$item->mid]['type'] = $item->type;
}
Comments
Comment #1
fagoapart from coding style it looks fine.
Comment #2
(not verified) commented