diff options
Diffstat (limited to 'modules/node/node.api.php')
-rw-r--r-- | modules/node/node.api.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.api.php b/modules/node/node.api.php index 52d807f7f..b5a7adea9 100644 --- a/modules/node/node.api.php +++ b/modules/node/node.api.php @@ -261,7 +261,7 @@ function hook_node_load($nodes, $types) { */ function hook_node_prepare($node) { if (!isset($node->comment)) { - $node->comment = variable_get("comment_$node->type", COMMENT_NODE_READ_WRITE); + $node->comment = variable_get("comment_$node->type", COMMENT_NODE_OPEN); } } @@ -293,7 +293,7 @@ function hook_node_prepare_translation($node) { * Extra information to be added to the RSS item. */ function hook_node_rss_item($node) { - if ($node->comment != COMMENT_NODE_DISABLED) { + if ($node->comment != COMMENT_NODE_HIDDEN) { return array(array('key' => 'comments', 'value' => url('node/' . $node->nid, array('fragment' => 'comments', 'absolute' => TRUE)))); } else { @@ -491,7 +491,7 @@ function hook_node_type($op, $info) { break; case 'update': if (!empty($info->old_type) && $info->old_type != $info->type) { - $setting = variable_get('comment_' . $info->old_type, COMMENT_NODE_READ_WRITE); + $setting = variable_get('comment_' . $info->old_type, COMMENT_NODE_OPEN); variable_del('comment_' . $info->old_type); variable_set('comment_' . $info->type, $setting); } |