commit 412bda70aaa8d4cd37a9b16f3b5bfbee899073dc Author: Joel Pittet Date: Mon Sep 8 23:26:53 2014 -0700 less change diff --git a/feeds.pages.inc b/feeds.pages.inc index c8797ce..9e816db 100644 --- a/feeds.pages.inc +++ b/feeds.pages.inc @@ -346,7 +346,7 @@ function theme_feeds_source_status($v) { function theme_feeds_upload($variables) { $element = $variables['element']; drupal_add_css(drupal_get_path('module', 'feeds') . '/feeds.css'); - + _form_set_class($element, array('form-file')); $summary = ''; if (!empty($element['#file_info'])) { $file = $element['#file_info']; @@ -368,18 +368,10 @@ function theme_feeds_upload($variables) { $summary .= ''; $summary .= ''; } - - // Since the title is rendered directly, don't let it render again by theme_form_element(). - $element['#title_display'] = 'none'; - - // Render title of file element. - $output = theme('form_element_label', $variables); - // Make sure the title is shown above the rest. - $output .= '
'; - // Output info about previously uploaded file (if available). - $output .= $summary; + // Prepend the summary to the form field. + $element['#children'] = $summary . $element['#children']; // Render file upload field using theme_form_element(). - $output .= '
'; + $output = '
'; $output .= theme('form_element', $element); $output .= '
';