Problem/Motivation

The hook_ENTITY_TYPE_delete() implementation for user entities deletes only the primary email. It does not delete the other email associated with the account.

Proposed resolution

Change the hook_ENTITY_TYPE_delete() implementation to delete all the email addresses associated with the deleted account.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

avpaderno created an issue. See original summary.

avpaderno’s picture

Title: hook_ENTITY_TYPE_delete() deletes only the primary key » hook_ENTITY_TYPE_delete() deletes only the primary email

avpaderno’s picture

Status: Active » Needs review
avpaderno’s picture

Assigned: avpaderno » Unassigned
Status: Needs review » Reviewed & tested by the community

  • avpaderno committed 9ed1af2a on 3.x
    Issue #3565765: hook_ENTITY_TYPE_delete() deletes only the primary email
    
avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.