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.
This will require a patch to the current version of Masquerade to work. Masquerade currently doesn't provide any form of "module_invoke_all" to identify Masquerade events.
See #1438036: Add Rules support and #1458418: Add masquerade events API.
Comment | File | Size | Author |
---|---|---|---|
#7 | add-rule-support-1458334-6.patch | 5.09 KB | yogaf |
#2 | masquerade_extra-is-masquerading-1458334-2.patch | 1006 bytes | MorinLuc0 |
Comments
Comment #1
andypost#1438036: Add Rules support
Comment #1.0
andypostAdded other feature request to info.
Comment #2
MorinLuc0 CreditAttribution: MorinLuc0 commentedFor anyone waiting for a rules support for if a user is masquerading.
Patch to be applied to the masquerade_extra ctools module.
Comment #3
yogaf CreditAttribution: yogaf commentedI just started "Masquerade Rules" sandbox. I hope to see this module become part of the masquerade extra suite.
Right now the patches from the project front page not working well.
Comment #4
yogaf CreditAttribution: yogaf commentedComment #5
wjaspers CreditAttribution: wjaspers commentedIts been quite awhile since I've put any changes into Masquerade Extras, or any drupal projects at all. As I have not been following the progress of Masquerade or D8 closely, I'm not aware of any hooks that may have been recently added to the Masquerade project. Just glancing over the most recent release candidate, I dont see that any specific to masquerade have been rolled-in. I will keep an eye on #1836516: Port Masquerade to D8 and rewrite + simplify it into a new 2.x series.
Comment #6
yogaf CreditAttribution: yogaf commentedMeantime can we commit code from "Masquerade Rules" sandbox and change the project front page rules section - patches there are outdated.
I'm sure it will be useful for others...
Just let me know and I'll submit a patch.
Comment #7
yogaf CreditAttribution: yogaf commentedProperties/Tokens
(current) User->Masquerading user
Rules
Logged user is masquerading
Specific user is masquerading
Specific user is being masqueraded
Comment #8
yogaf CreditAttribution: yogaf commentedComment #10
wjaspers CreditAttribution: wjaspers commentedPatched 7.x-2.x branch. Will backport to 1.x. Applied patch does not handle custom hooks as would be anticipated by related issue(s).
Comment #12
wjaspers CreditAttribution: wjaspers commentedBackported into 7.x-1.x as well.