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

fago’s picture

Status: Active » Fixed

apart from coding style it looks fine.

Anonymous’s picture

Status: Fixed » Closed (fixed)