Commit 19dd7c96 authored by Dries's avatar Dries
Browse files

- Patch #510398 by asimmonds: incorrect CSS class for form element wrappers.

parent e4a4b7cc
......@@ -2607,7 +2607,7 @@ function theme_form_element($element) {
$class[] = 'form-item-' . strtr($element['#type'], array('_' => '-'));
}
if (!empty($element['#name'])) {
$class[] = strtr($element['#name'], array('_' => '-', '[' => '-', ']' => '')) . '-wrapper';
$class[] = strtr($element['#name'], array(' ' => '-', '_' => '-', '[' => '-', ']' => '')) . '-wrapper';
}
$output = '<div class="' . implode(' ', $class) . '">' . "\n";
......
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