Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Login destination being so heavily used across drupal sites, should have HOOK_login_destination_match_rule_alter() implemented to let module developers customise the matching of redirect rules further.
I ran into a use case where I needed to check if the current user had a permission before a specific redirect rule can be triggered. I will be attaching a patch to it where i have drupal alter to login destination.
Comment | File | Size | Author |
---|---|---|---|
#2 | Implement-HOOK_login_destination_match_rule_alter-2763817.patch | 756 bytes | vidhatanand |
Comments
Comment #2
vidhatanand CreditAttribution: vidhatanand at OpenSense Labs commentedThe following patch implements drupal_alter on login_destination_match_rule, and makes rule id available to make customisations based on rule ids.