Commit fe4cb62e authored by quicksketch's avatar quicksketch

#638526: Improve the accessibility of the upload field.

parent 65dac21c
......@@ -446,6 +446,7 @@ function filefield_widget_validate(&$element, &$form_state) {
* FormAPI theme function. Theme the output of an image field.
function theme_filefield_widget($element) {
$element['#id'] .= '-upload'; // Link the label to the upload field.
return theme('form_element', $element, $element['#children']);
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