summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-12-22 15:38:07 +0000
committerDries Buytaert <dries@buytaert.net>2003-12-22 15:38:07 +0000
commit770174b2994937f7dc5bba43e17e5b2a07421d33 (patch)
treeab895ffed1a15697912fb020c9370b9462c12bf1 /includes/common.inc
parent8f226513b4f5a7e4dd559888df0b9bb69b9f8cb6 (diff)
downloadbrdo-770174b2994937f7dc5bba43e17e5b2a07421d33.tar.gz
brdo-770174b2994937f7dc5bba43e17e5b2a07421d33.tar.bz2
- Updated documentation, small bug fix and small improvements to the <label>
tags. To be discussed and investigated: when a form element has no title an empty <label> tag will be emitted (eg. "remember me" checkbox). This doesn't make sense but is our best option for now.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 674419619..6a4e82a3c 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -764,10 +764,10 @@ function form_select($title, $name, $value, $options, $description = NULL, $extr
function form_radios($title, $name, $value, $options, $description = NULL) {
if (count($options) > 0) {
- foreach ($options as $key=>$choice) {
+ foreach ($options as $key => $choice) {
$output .= form_radio($choice, $name, $key, ($key == $value));
}
- return theme("form_element", $title, $output, $description);
+ return theme("form_element", $title, $output, $description, $name);
}
}