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.
The user relationship module does only implements hook_user_cancel which is not invoked for "user_cancel_delete" method.
When an account is cancelled and its content is deleted, the entries for this relationship are not removed from the user_relationships table.
A view to display a particular users relationships WSOD's if a relationship exists between the a user and the deleted user, due to the entry in the user relationship table while the uid does not exist anymore.
Not sure if this is a bug, but would be great if someone could look into it.
Comments
Comment #1
graker CreditAttribution: graker commentedI guess it is actually a bug since undeleted relationship, if not approved, will mess with on-screen notifications of new relationship requests without any ability to remove, decline or even see it.
The issue is still in place in dev version. I believe the module should have hook_user_delete() implemented with the same code as in hook_user_cancel() implementation.