diff options
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.install | 2 | ||||
-rw-r--r-- | modules/comment/comment.module | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index c5d78e1b3..454d6e16a 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -117,7 +117,7 @@ function comment_update_7004() { */ function comment_update_7005() { foreach (node_type_get_types() as $info) { - field_attach_create_bundle('comment_node_' . $info->type); + field_attach_create_bundle('comment', 'comment_node_' . $info->type); } } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index c18e4ed44..431a9daaf 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -233,7 +233,7 @@ function comment_count_unpublished() { * Implement hook_node_type_insert(). */ function comment_node_type_insert($info) { - field_attach_create_bundle('comment_node_' . $info->type); + field_attach_create_bundle('comment', 'comment_node_' . $info->type); } /** @@ -241,7 +241,7 @@ function comment_node_type_insert($info) { */ function comment_node_type_update($info) { if (!empty($info->old_type) && $info->type != $info->old_type) { - field_attach_rename_bundle('comment_node_' . $info->old_type, 'comment_node_' . $info->type); + field_attach_rename_bundle('comment', 'comment_node_' . $info->old_type, 'comment_node_' . $info->type); } } @@ -249,7 +249,7 @@ function comment_node_type_update($info) { * Implement hook_node_type_delete(). */ function comment_node_type_delete($info) { - field_attach_delete_bundle('comment_node_' . $info->type); + field_attach_delete_bundle('comment', 'comment_node_' . $info->type); $settings = array( 'comment', 'comment_default_mode', |