From 8bd1079972d6936b571c9aa3fa26f1bb960defe7 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Sun, 29 Jul 2012 22:27:34 -0400 Subject: Issue #1599618 by droplet, yurtboy, Albert Volkman: Fixed Remove duplicate array keys. --- modules/file/file.field.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/file') diff --git a/modules/file/file.field.inc b/modules/file/file.field.inc index 6a9f199c4..1189704fd 100644 --- a/modules/file/file.field.inc +++ b/modules/file/file.field.inc @@ -627,10 +627,9 @@ function file_field_widget_process($element, &$form_state, $form) { // Add the description field if enabled. if (!empty($instance['settings']['description_field']) && $item['fid']) { $element['description'] = array( - '#type' => 'textfield', + '#type' => variable_get('file_description_type', 'textfield'), '#title' => t('Description'), '#value' => isset($item['description']) ? $item['description'] : '', - '#type' => variable_get('file_description_type', 'textfield'), '#maxlength' => variable_get('file_description_length', 128), '#description' => t('The description may be used as the label of the link to the file.'), ); -- cgit v1.2.3