summaryrefslogtreecommitdiff
path: root/includes/form.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/form.inc')
-rw-r--r--includes/form.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc
index f36da73ab..2256f4f05 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -2540,10 +2540,10 @@ function theme_form_element($element) {
// Add element's #type and #name as class to aid with JS/CSS selectors.
$class = array('form-item');
if (!empty($element['#type'])) {
- $class[] = 'form-item-' . strtr($element['#type'], array('_' => '-'));
+ $class[] = 'form-type-' . strtr($element['#type'], '_', '-');
}
if (!empty($element['#name'])) {
- $class[] = strtr($element['#name'], array(' ' => '-', '_' => '-', '[' => '-', ']' => '')) . '-wrapper';
+ $class[] = 'form-item-' . strtr($element['#name'], array(' ' => '-', '_' => '-', '[' => '-', ']' => ''));
}
$output = '<div class="' . implode(' ', $class) . '">' . "\n";