function simplenews_statistics_delete_opens in Simplenews Statistics 7
Same name and namespace in other branches
- 7.2 simplenews_statistics.module \simplenews_statistics_delete_opens()
Delete all open records for a newsletter.
2 calls to simplenews_statistics_delete_opens()
- simplenews_statistics_cron in ./
simplenews_statistics.module - Implements hook_cron().
- simplenews_statistics_node_delete in ./
simplenews_statistics.module - Implements hook_node_delete().
File
- ./
simplenews_statistics.module, line 468 - Main simplenews statistics file.
Code
function simplenews_statistics_delete_opens($nid) {
return db_delete('simplenews_statistics_open')
->condition('nid', $nid)
->execute();
}