diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-03-25 19:57:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-03-25 19:57:56 +0000 |
commit | 757ac966bba514a36746d3aaf91168701a647fca (patch) | |
tree | 277c084759d2a344901bac735bd95824c66544f8 /includes | |
parent | 01cd96dc27eb5a39ffd7efd65b4b848f7e2ccbb2 (diff) | |
download | brdo-757ac966bba514a36746d3aaf91168701a647fca.tar.gz brdo-757ac966bba514a36746d3aaf91168701a647fca.tar.bz2 |
- Patch #130630 by chx: provide an id on the form item wrapper div.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index 545ad33ef..49dc8e47a 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -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'])) { |