You are here

function simplenews_node_insert in Simplenews 7

Implements hook_node_insert().

File

./simplenews.module, line 433
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_node_insert($node) {
  if (!simplenews_check_node_types($node->type)) {
    return;
  }
  $node->simplenews = (object) simplenews_newsletter_defaults($node);
  simplenews_newsletter_save($node->simplenews);
}