function notify_user_cancel in Notify 1.0.x
Same name and namespace in other branches
- 8 notify.module \notify_user_cancel()
- 7 notify.module \notify_user_cancel()
- 2.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();
}