Skip navigation
Help

comment_node_type_insert

7 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

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

Code

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