Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.