summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-15 12:44:36 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-15 12:44:36 +0000
commit714597a9cdb42c3ca0df843f7f6a7351c6e06e39 (patch)
tree4e42239768111673ec7e8ae3181e7fa7339937c4 /modules/comment/comment.module
parent35e21e54e1122f98bede28f89d80f2fb13b3fd97 (diff)
downloadbrdo-714597a9cdb42c3ca0df843f7f6a7351c6e06e39.tar.gz
brdo-714597a9cdb42c3ca0df843f7f6a7351c6e06e39.tar.bz2
- Patch #470242 by yched, bjaspan: fixed namespacing for bundle names to avoid users rendering their site unusable.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module6
1 files changed, 3 insertions, 3 deletions
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',