function simplenews_node_type_insert in Simplenews 7
Same name and namespace in other branches
- 7.2 simplenews.module \simplenews_node_type_insert()
Implements hook_node_type_insert().
File
- ./
simplenews.module, line 315 - 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_add_term_field($info);
}
}