_comment_body_field_instance_create($info)Helper function which creates a comment body field instance for a given node type.
modules/comment/comment.module, line 341
<?php
function _comment_body_field_instance_create($info) {
// Attaches the body field by default.
$instance = array(
'field_name' => 'comment_body',
'label' => 'Comment',
'object_type' => 'comment',
'bundle' => 'comment_node_' . $info->type,
'settings' => array('text_processing' => 1),
'required' => TRUE,
// Hides field label by default.
'display' => array(
'full' => array(
'label' => 'hidden',
),
),
);
field_create_instance($instance);
}
?>