summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-07 14:36:16 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-07 14:36:16 +0000
commit626e64025eb85faf819b9d17298df505e9d0526a (patch)
tree922289f4a323959f30818b7259eff179b0894fbc /modules/comment/comment.install
parentc8c14b527e78d35ba97d1d1fcfb38c98bc457341 (diff)
downloadbrdo-626e64025eb85faf819b9d17298df505e9d0526a.tar.gz
brdo-626e64025eb85faf819b9d17298df505e9d0526a.tar.bz2
- Patch #682552 by mradcliffe, jhodgdon: FieldException when trying to enable blog and comment modules for first time.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r--modules/comment/comment.install2
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);
}
}