Commit 27e562e3 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#57694, Class attributes form-select and form-textarea more consistent, patch...

#57694, Class attributes form-select and form-textarea more consistent, patch by Flanker, cleaned up by me
parent 07682f4a
......@@ -565,7 +565,7 @@ function form_options_flatten($array, $reset = TRUE) {
function theme_select($element) {
$select = '';
$size = $element['#size'] ? ' size="' . $element['#size'] . '"' : '';
_form_set_class($element);
_form_set_class($element, array('form-select'));
return theme('form_element', $element['#title'], '<select name="'. $element['#name'] .''. ($element['#multiple'] ? '[]' : '') .'"'. ($element['#multiple'] ? ' multiple="multiple" ' : '') . drupal_attributes($element['#attributes']) .' id="' . $element['#id'] .'" '. $size .'>'. form_select_options($element) .'</select>', $element['#description'], $element['#id'], $element['#required'], form_get_error($element));
}
......@@ -952,7 +952,7 @@ function theme_form($element) {
* A themed HTML string representing the textarea.
*/
function theme_textarea($element) {
$class = array('textarea');
$class = array('form-textarea');
if ($element['#resizable'] !== false) {
drupal_add_js('misc/textarea.js');
$class[] = 'resizable';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment