function multiple_email_user_delete in Multiple E-mail Addresses 2.x
Same name and namespace in other branches
- 7 multiple_email.module \multiple_email_user_delete()
Implements hook_user_delete().
This replaces hook_user_cancel() because disabled users should still have a record of their registered email addresses.
File
- ./
multiple_email.module, line 180 - multiple_email module file
Code
function multiple_email_user_delete($account) {
// delete Multiple E-mails from the deleted user.
db_delete('multiple_email')
->condition('uid', $account->uid)
->execute();
}