From 4072ea46521512da7ff9f57a21cbeb4c4f7c2cfa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 17 Mar 2009 12:41:54 +0000 Subject: - Patch #394374 by cwgordon7, wretched sinner, et al: improved language of comment status. Usability improvement based on testing in Baltimore. --- modules/node/node.api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/node/node.api.php') 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); } -- cgit v1.2.3