In thinking about #2827208: Send user who created invite an email when unused invites expire, I realized that much of the updating of invites entities is done directly via database queries. This makes it hard to perform actions or checks any time an entity would be updated, deleted, etc.

The idea for this ticket would be to replace the db_delete() and db_update functions with entity_save() and entity_delete() functions. Then in #2827208: Send user who created invite an email when unused invites expire, the entity hooks can be used to send an email to the inviter when an invite expires no matter where or how it is set to expire.

Comments

afinnarn created an issue.