diff options
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index 8e0f345f3..36d5c3f95 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -69,7 +69,7 @@ function comment_enable() { // and a comment_field_attach_create_bundle() function should be added to // handle the creation of the comment body field instance. foreach (node_type_get_types() as $type => $info) { - if (!field_info_instance('comment', 'comment_body', 'comment_node_' . $info->type)) { + if (!($info->is_new) && !($info->disabled) && !field_info_instance('comment', 'comment_body', 'comment_node_' . $info->type)) { _comment_body_field_instance_create($info); } } |