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.
Invoke a hook when a user starts or stops masquerading. This will allow other modules to perform necessary actions.
See attached patch file
Comment | File | Size | Author |
---|---|---|---|
masquerade_add_hooks.patch | 1.03 KB | benrj | |
Comments
Comment #1
deekayen CreditAttribution: deekayen commented#1364574: Invoke logout & login hooks for compatibility with bakery
Comment #2
andypostThis issue about introducing hooks and probably reactions for example with rules
Comment #3
deekayen CreditAttribution: deekayen commentedMy bad. They are different hooks.
Comment #4
andypost@deekayen suppose for d8 we just need to define action (trigger is not more in core) and has a masquarade.rules.inc file when d8 branch of rules become ready
So let's fix this in D7 first
Comment #5
wjaspers CreditAttribution: wjaspers commentedNot sure which direction to head, but #1458418: Add masquerade events API aims to do the same thing (and a little more).