From bfca088828691d0dec8825990eea8517828621fc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 3 May 2004 17:26:22 +0000 Subject: - 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. --- modules/comment/comment.module | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/comment/comment.module') 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; -- cgit v1.2.3