summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Barth2010-09-20 16:56:24 +0000
committerAlex Barth2010-09-20 16:56:24 +0000
commit247c0d30106350654da8169c61e902478f72301d (patch)
tree821b3b073723c9e92f64c50ff5dfe0876d68e8ef
parentcc5cf9b5a2b5d8296f42b21b452c4a91ba37c23c (diff)
Make sure title does not print twice.
-rw-r--r--feeds.pages.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/feeds.pages.inc b/feeds.pages.inc
index 424de6b..44b244a 100644
--- a/feeds.pages.inc
+++ b/feeds.pages.inc
@@ -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 .= '</div>';
$element['#description'] = $description;
+
+ // For some reason not unsetting #title leads to printing the title twice.
+ unset($element['#title']);
return theme('form_element', $element);
}