summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-05-24 20:38:00 +0000
committerDries Buytaert <dries@buytaert.net>2005-05-24 20:38:00 +0000
commit8aba3a430b98a8e764c3a054a3941a4aefa6eda4 (patch)
tree7e5d90a13bb1e46a882793331558e66390dd467f
parent58bddf8abc2cb4c51b49a1ad1dc6c7eca411eb22 (diff)
downloadbrdo-8aba3a430b98a8e764c3a054a3941a4aefa6eda4.tar.gz
brdo-8aba3a430b98a8e764c3a054a3941a4aefa6eda4.tar.bz2
- Patch #23530 by Thox/Robin: removed the wrap="virtual" attribute from textareas. According to Thox this is no longer neccessary. Makes textareas validate as XHTML.
-rw-r--r--includes/common.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 1c4f1b1b3..429d98522 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1353,7 +1353,7 @@ function form_textarea($title, $name, $value, $cols, $rows, $description = NULL,
}
}
- return theme('form_element', $title, $pre .'<textarea wrap="virtual"'. $cols .' rows="'. $rows .'" name="edit['. $name .']" id="edit-'. $name .'" class="'. _form_get_class('textarea', $required, _form_get_error($name)) .'"'. drupal_attributes($attributes) .'>'. check_plain($value) .'</textarea>'. $post, $description, 'edit-'. $name, $required, _form_get_error($name));
+ return theme('form_element', $title, $pre .'<textarea'. $cols .' rows="'. $rows .'" name="edit['. $name .']" id="edit-'. $name .'" class="'. _form_get_class('textarea', $required, _form_get_error($name)) .'"'. drupal_attributes($attributes) .'>'. check_plain($value) .'</textarea>'. $post, $description, 'edit-'. $name, $required, _form_get_error($name));
}
/**
@@ -1984,7 +1984,7 @@ function drupal_add_js($file) {
function drupal_implode_autocomplete($array) {
$output = array();
foreach ($array as $k => $v) {
- $output[] = str_replace('|', '&#124;', $k) .'|'. str_replace('|', '&#124;', $v);
+ $output[] = str_replace('|', '&#124;', $k) .'|'. str_replace('|', '&#124;', $v);
}
return implode('||', $output);
}