summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-01 22:28:55 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-01 22:28:55 +0000
commit96672deebfe1094bc118d0f82e354cba2ccd5c43 (patch)
treeb8a23368017c6e8cd1a6128f7b9cfe81fe0bcda1 /includes
parent3858e1a19f9b8331d01cc7ab45d28b5575c0e260 (diff)
downloadbrdo-96672deebfe1094bc118d0f82e354cba2ccd5c43.tar.gz
brdo-96672deebfe1094bc118d0f82e354cba2ccd5c43.tar.bz2
#917220 by Everett Zufelt, mgifford: Invisible elements should appear before form elements.
Diffstat (limited to 'includes')
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 40fff1f25..faaa75d5f 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -3533,11 +3533,11 @@ function theme_form_element($variables) {
switch ($element['#title_display']) {
case 'before':
+ case 'invisible':
$output .= ' ' . theme('form_element_label', $variables);
$output .= ' ' . $prefix . $element['#children'] . $suffix . "\n";
break;
- case 'invisible':
case 'after':
$output .= ' ' . $prefix . $element['#children'] . $suffix;
$output .= ' ' . theme('form_element_label', $variables) . "\n";