From a8a15bcd9015914d5350d868760f8d750b80354e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 31 Jul 2009 19:44:21 +0000 Subject: - Patch #504666 by catch, yched, et al: make comments fieldable. Oh my. Bye bye comments as nodes? --- modules/comment/comment.install | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/comment/comment.install') 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 -- cgit v1.2.3