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

graker’s picture

Issue summary:View changes

I 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.