You are here

function subscriptions_user_delete in Subscriptions 7

Same name and namespace in other branches
  1. 2.0.x subscriptions.module \subscriptions_user_delete()
  2. 2.0.x subscriptions.module.old.php \subscriptions_user_delete()

Implements hook_user_delete().

Parameters

object $account:

1 call to subscriptions_user_delete()
subscriptions_user_cancel in ./subscriptions.module
Implements hook_user_cancel().

File

./subscriptions.module, 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();
}