function comment_node_type_insert

comment_node_type_insert($info)

Implements hook_node_type_insert().

Creates a comment body field for a node type created while the comment module is enabled. For node types created before the comment module is enabled, hook_modules_enabled() serves to create the body fields.

See also

comment_modules_enabled()

File

modules/comment/comment.module, line 327
Enables users to comment on published content.

Code

function comment_node_type_insert($info) {
  _comment_body_field_create($info);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.module/function/comment_node_type_insert/7.x