Invoke a hook when a user starts or stops masquerading. This will allow other modules to perform necessary actions.

See attached patch file

CommentFileSizeAuthor
masquerade_add_hooks.patch1.03 KBbenrj

Comments

deekayen’s picture

andypost’s picture

Version: 7.x-1.0-rc4 » 7.x-1.x-dev
Status: Closed (duplicate) » Needs review

This issue about introducing hooks and probably reactions for example with rules

deekayen’s picture

My bad. They are different hooks.

andypost’s picture

Status: Needs review » Needs work

@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

wjaspers’s picture

Not sure which direction to head, but #1458418: Add masquerade events API aims to do the same thing (and a little more).

ressa’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Thanks for working on this. In an attempt to help the maintainers, I am going through some of the Drupal 7 issues, and closing them, since Drupal 7 is EOL.

Maintainers should grant credit for the great work to the relevant users, even if the patch did not get committed: https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett....

Since Drupal 7 is EOL, we can probably close this issue, but feel free to re-open if this is still relevant, and we should consider adding this to the Drupal 11 version?

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.