You are here

function simplenews_clear_spool_node in Simplenews 6.2

Remove records from mail spool table for node.

Return value

Count deleted

2 calls to simplenews_clear_spool_node()
simplenews_nodeapi in ./simplenews.module
Implementation of hook_nodeapi().
simplenews_send_node in includes/simplenews.mail.inc
Send newsletter node to subscribers.

File

includes/simplenews.mail.inc, line 547
Simplenews email send and spool handling

Code

function simplenews_clear_spool_node($node) {
  db_query("\n    DELETE FROM {simplenews_mail_spool}\n    WHERE nid = %d", $node->nid);
  $deleted_count = db_affected_rows();
  return $deleted_count;
}