You are here

function simplenews_scheduler_node_delete in Simplenews Scheduler 7

Same name and namespace in other branches
  1. 8 simplenews_scheduler.module \simplenews_scheduler_node_delete()
  2. 2.0.x simplenews_scheduler.module \simplenews_scheduler_node_delete()

Implements hook_node_delete().

File

./simplenews_scheduler.module, line 310
Simplenews Scheduler module allows a schedule to be set for sending (and resending) a Simplenews item.

Code

function simplenews_scheduler_node_delete($node) {
  db_delete('simplenews_scheduler')
    ->condition('nid', $node->nid)
    ->execute();
  db_delete('simplenews_scheduler_editions')
    ->condition('eid', $node->nid)
    ->execute();
}