You are here

function simplenews_node_type_insert in Simplenews 7.2

Same name and namespace in other branches
  1. 7 simplenews.module \simplenews_node_type_insert()

Implements hook_node_type_insert().

File

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

Code

function simplenews_node_type_insert($info) {

  // Avoid using simplenews_check_node_type() because the node type cache
  // has not been cleared yet.
  if (variable_get('simplenews_content_type_' . $info->type, FALSE)) {
    simplenews_issue_fields_add($info);
  }
}