- Patch #130630 by chx: provide an id on the form item wrapper div.
parent
01cd96dc27
commit
757ac966bb
|
@ -1540,7 +1540,11 @@ function theme_file($element) {
|
|||
* A string representing the form element.
|
||||
*/
|
||||
function theme_form_element($element, $value) {
|
||||
$output = '<div class="form-item">'."\n";
|
||||
$output = '<div class="form-item"';
|
||||
if (!empty($element['#id'])) {
|
||||
$output .= ' id="'. $element['#id'] .'-wrapper"';
|
||||
}
|
||||
$output .= ">\n";
|
||||
$required = !empty($element['#required']) ? '<span class="form-required" title="'. t('This field is required.') .'">*</span>' : '';
|
||||
|
||||
if (!empty($element['#title'])) {
|
||||
|
|
Loading…
Reference in New Issue