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.
Logically, when a user is unsubscribed from a group, or the user account is deleted, the OG roles are being revoked.
However, hook_og_role_revoke() is not invoked in these circumstances.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2247351.og_.hook_og_role_revoke-user-unsub-delete-tests-fail.patch | 4.49 KB | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commentedHere's a patch that adds tests for both the grant and revoke hooks and fails in these two scenarios.