You are here

function simplenews_delete in Simplenews 5

Implementation of hook_delete().

File

./simplenews.module, line 459

Code

function simplenews_delete($node) {
  $result = db_query('DELETE FROM {simplenews_newsletters} WHERE nid = %d', $node->nid);
  if ($result) {
    drupal_set_message(t('Newsletter %title was successfully deleted.', array(
      '%title' => $node->title,
    )));
  }
}