1 comment.module 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

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

Code

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