function notify_comment_delete in Notify 2.0.x
Same name and namespace in other branches
- 8 notify.module \notify_comment_delete()
- 7 notify.module \notify_comment_delete()
- 1.0.x notify.module \notify_comment_delete()
Implements hook_comment_delete().
Delete the unpublished comment in the queue when the comment itself is deleted.
File
- ./
notify.module, line 214 - Hooks for Notify module.
Code
function notify_comment_delete($comment) {
\Drupal::database()
->delete('notify_unpublished_queue')
->condition('cid', $comment
->id())
->execute();
}