diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-31 19:44:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-31 19:44:21 +0000 |
commit | a8a15bcd9015914d5350d868760f8d750b80354e (patch) | |
tree | c7bbfa7576430403282b0b9dc7ef20d06e218d61 /modules/comment/comment.install | |
parent | 04d7eb4acb8b892e489a3abe49c9a98e5d863f7e (diff) | |
download | brdo-a8a15bcd9015914d5350d868760f8d750b80354e.tar.gz brdo-a8a15bcd9015914d5350d868760f8d750b80354e.tar.bz2 |
- Patch #504666 by catch, yched, et al: make comments fieldable. Oh my. Bye bye comments as nodes?
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r-- | modules/comment/comment.install | 12 |
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 |