diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-05-03 17:26:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-05-03 17:26:22 +0000 |
commit | bfca088828691d0dec8825990eea8517828621fc (patch) | |
tree | a85e05248f39a7cb6b8ff5b082bb92e8ea39fb60 | |
parent | 0f1f45c710e8b92ae76a119784ff6906a6a7ed19 (diff) | |
download | brdo-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.
-rw-r--r-- | modules/comment.module | 4 | ||||
-rw-r--r-- | modules/comment/comment.module | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/modules/comment.module b/modules/comment.module index 6311f983e..d5239fcd1 100644 --- a/modules/comment.module +++ b/modules/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; 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; |