You are here

function notify_user_cancel in Notify 8

Same name and namespace in other branches
  1. 7 notify.module \notify_user_cancel()
  2. 2.0.x notify.module \notify_user_cancel()
  3. 1.0.x notify.module \notify_user_cancel()

Implements hook_user_cancel().

File

./notify.module, line 94
Notify module sends e-mail digests of new content and comments.

Code

function notify_user_cancel($edit, $account, $method) {
  global $user;
  \Drupal::database()
    ->delete('notify')
    ->condition('uid', $user->uid)
    ->execute();
}