Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I needed to add the option to select whether the user is the 'logged-in user' or the 'user being viewed' in order to select a menu position depending on a role a user for which I view the profile has.
This simple patch seems to do the trick. Here it is for review in case someone else needs this feature.
Comment | File | Size | Author |
---|---|---|---|
#1 | menu_position-user_roles_enhanced-2001172-1.patch | 2.26 KB | ShaunDychko |
menu_position-user_roles_enhanced.patch | 2.04 KB | pvasener |
Comments
Comment #1
ShaunDychko CreditAttribution: ShaunDychko commentedSuper patch, thank you very much. It is re-rolled here to apply cleanly from the project root.