summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r--modules/comment/comment.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index 780753c75..61ca2d14a 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -296,3 +296,15 @@ function comment_schema() {
return $schema;
}
+
+/**
+ * Create comment Field API bundles.
+ */
+function comment_update_7005() {
+ $ret = array();
+
+ foreach (node_type_get_types() as $info) {
+ field_attach_create_bundle('comment_node_' . $info->type);
+ }
+ return $ret;
+} \ No newline at end of file