summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 6311f983e..d5239fcd1 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1632,9 +1632,7 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
case "form admin":
if (user_access("administer comments")) {
$selected = isset($node->comment) ? $node->comment : variable_get("comment_$node->type", 2);
- $output = form_radio(t("Disabled"), "comment", 0, ($selected == 0));
- $output .= form_radio(t("Read only"), "comment", 1, ($selected == 1));
- $output .= form_radio(t("Read/write"), "comment", 2, ($selected == 2));
+ $output = form_radios("", "comment", $selected, array(t("Disabled"), t("Read only"), t("Read/write")));
return form_group(t("User comments"), $output);
}
break;