You are here

function notify_node_delete in Notify 1.0.x

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

Implementation of hook_node_delete().

Delete any unpublished contents in the queue associated with the node being deleted.

File

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

Code

function notify_node_delete($node) {
  \Drupal::database()
    ->delete('notify_unpublished_queue')
    ->condition('nid', $node
    ->id())
    ->execute();
}