summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 2e7f87334..0de03afe3 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -576,22 +576,22 @@ function theme_node($node, $teaser = FALSE, $page = FALSE) {
*/
function theme_form_element($title, $value, $description = NULL, $id = NULL, $required = FALSE, $error = FALSE) {
- $output = "<div class=\"form-item\">\n";
+ $output = '<div class="form-item">'."\n";
$required = $required ? '<span class="form-required">*</span>' : '';
if ($title) {
if ($id) {
- $output .= " <label for=\"$id\">$title:</label>$required<br />\n";
+ $output .= ' <label for="'. form_clean_id($id) .'">'. $title .':</label>'. $required ."<br />\n";
}
else {
- $output .= " <label>$title:</label>$required<br />\n";
+ $output .= ' <label>'. $title .':</label>'. $required ."<br />\n";
}
}
$output .= " $value\n";
if ($description) {
- $output .= " <div class=\"description\">$description</div>\n";
+ $output .= ' <div class="description">'. $description ."</div>\n";
}
$output .= "</div>\n";