Skip to content
Snippets Groups Projects
Commit 247c0d30 authored by Alex Barth's avatar Alex Barth
Browse files

Make sure title does not print twice.

parent cc5cf9b5
No related branches found
No related tags found
No related merge requests found
...@@ -178,5 +178,8 @@ function theme_feeds_upload($variables) { ...@@ -178,5 +178,8 @@ function theme_feeds_upload($variables) {
$description .= '<input type="file" name="'. $element['#name'] .'"'. ($element['#attributes'] ? ' '. drupal_attributes($element['#attributes']) : '') .' id="'. $element['#id'] .'" size="'. $element['#size'] ."\" />\n"; $description .= '<input type="file" name="'. $element['#name'] .'"'. ($element['#attributes'] ? ' '. drupal_attributes($element['#attributes']) : '') .' id="'. $element['#id'] .'" size="'. $element['#size'] ."\" />\n";
$description .= '</div>'; $description .= '</div>';
$element['#description'] = $description; $element['#description'] = $description;
// For some reason not unsetting #title leads to printing the title twice.
unset($element['#title']);
return theme('form_element', $element); return theme('form_element', $element);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment