- Ported patch #6470 by Brian: fixed more XHTML erros related to multiple selects.
parent
2fe664016c
commit
6bd3c11a40
|
@ -1003,7 +1003,7 @@ function form_select($title, $name, $value, $options, $description = NULL, $extr
|
|||
foreach ($options as $key => $choice) {
|
||||
$select .= "<option value=\"$key\"". (is_array($value) ? (in_array($key, $value) ? " selected=\"selected\"" : "") : ($value == $key ? " selected=\"selected\"" : "")) .">". check_form($choice) ."</option>";
|
||||
}
|
||||
return theme("form_element", $title, "<select name=\"edit[$name]". ($multiple ? "[]" : "") ."\"". ($multiple ? " multiple " : "") . ($extra ? " $extra" : "") ." id=\"$name\">$select</select>", $description, $name);
|
||||
return theme("form_element", $title, "<select name=\"edit[$name]". ($multiple ? "[]" : "") ."\"". ($multiple ? " multiple=\"multiple\" " : "") . ($extra ? " $extra" : "") ." id=\"$name\">$select</select>", $description, $name);
|
||||
}
|
||||
|
||||
function form_file($title, $name, $size, $description = NULL) {
|
||||
|
|
Loading…
Reference in New Issue