function subscriptions_user_delete in Subscriptions 2.0.x
Same name in this branch
- 2.0.x subscriptions.module \subscriptions_user_delete()
- 2.0.x subscriptions.module.old.php \subscriptions_user_delete()
Same name and namespace in other branches
- 7 subscriptions.module \subscriptions_user_delete()
Implements hook_user_delete().
Parameters
object $account:
2 calls to subscriptions_user_delete()
- subscriptions_user_cancel in ./
subscriptions.module - Implements hook_user_cancel().
- subscriptions_user_cancel in ./
subscriptions.module.old.php - Implements hook_user_cancel().
File
- ./
subscriptions.module.old.php, line 387 - Subscriptions module.
Code
function subscriptions_user_delete($account) {
db_delete('subscriptions_queue')
->condition('uid', $account->uid)
->execute();
db_delete('subscriptions_user')
->condition('uid', $account->uid)
->execute();
subscriptions_delete($account->uid);
db_delete('subscriptions_last_sent')
->condition('uid', $account->uid)
->execute();
}