I'm using menu_tools_roles to give mobile anonymous users a mobile role. I then use this role to hide certain menu items for mobile users (Menu Per Role module). I was having a lot of trouble getting this to work consistently across all pages... I started to guess that module weight matters here, because the mobile role is applied on hook_init. I lowered the weight of menu_tools_roles to -1 and everything worked as expected. I assumed that this happened because I made weight lower than that of the menu module. Could be wrong tho.

Anyone care to chime in on if this was not the problem?

Comments

minoroffense’s picture

Status: Active » Postponed (maintainer needs more info)

Did you adjust the weight of Mobile Tools or Mobile Tools Roles?

devin carlson’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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