function multiple_email_user_delete in Multiple E-mail Addresses 7
Same name and namespace in other branches
- 2.x 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 205 - 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();
}