summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-05-03 17:26:22 +0000
committerDries Buytaert <dries@buytaert.net>2004-05-03 17:26:22 +0000
commitbfca088828691d0dec8825990eea8517828621fc (patch)
treea85e05248f39a7cb6b8ff5b082bb92e8ea39fb60 /modules/comment/comment.module
parent0f1f45c710e8b92ae76a119784ff6906a6a7ed19 (diff)
downloadbrdo-bfca088828691d0dec8825990eea8517828621fc.tar.gz
brdo-bfca088828691d0dec8825990eea8517828621fc.tar.bz2
- Patch #7504 by bylund: multiple form_radio-function calls is used instead
of a single form_radios-call. This could cause problems when trying to style individual form elements.
Diffstat (limited to 'modules/comment/comment.module')
-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;