You are here

function notify_comment_delete in Notify 1.0.x

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

Implementation of hook_comment_delete().

Delete the unpublished comment in the queue when the comment itself is deleted.

File

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

Code

function notify_comment_delete($comment) {
  \Drupal::database()
    ->delete('notify_unpublished_queue')
    ->condition('cid', $comment
    ->id())
    ->execute();
}