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.
When user send a relationship request to any user it displays status message "John has requested to be your Friend. View your pending friend requests to approve or decline" but when I delete the user John it diplays "Anonymous (not verified) has requested to be your Friend. View your pending friend requests to approve or decline". Why doesn't the request get deleted once the user who has requested is deleted?
Comments
Comment #1
D-pak CreditAttribution: D-pak commentedComment #2
D-pak CreditAttribution: D-pak commentedIs there any one to suggest me solution for the same?
Comment #3
D-pak CreditAttribution: D-pak commentedComment #4
D-pak CreditAttribution: D-pak commentedCan I get the list of pending requests from the users who are deleted?
Comment #5
D-pak CreditAttribution: D-pak commentedComment #6
D-pak CreditAttribution: D-pak commentedWho is maintaining the module?
Comment #7
sebto CreditAttribution: sebto commentedOnce a user has been deleted, UR module have to delete all relationships associated to deleted user but it doesn't work correctly. I implemented hook_user_delete in a custom module and delete non-approved relationships associated to the deleted user. like this:
Comment #8
heylookalive CreditAttribution: heylookalive commentedAs @sebto said we're missing a hook which has now been implemented. Also demoting the priority as this isn't critical, @d-pak please give the following a read (though understand the frustration of no response):
https://www.drupal.org/node/45111