summaryrefslogtreecommitdiff
path: root/modules/file
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-07-29 22:27:34 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-07-29 22:27:34 -0400
commit8bd1079972d6936b571c9aa3fa26f1bb960defe7 (patch)
treed732dac78016db49e414f90691cfa27fbe2c545d /modules/file
parent41f11d40b2eec1872ff771be2dd20ab28db81698 (diff)
downloadbrdo-8bd1079972d6936b571c9aa3fa26f1bb960defe7.tar.gz
brdo-8bd1079972d6936b571c9aa3fa26f1bb960defe7.tar.bz2
Issue #1599618 by droplet, yurtboy, Albert Volkman: Fixed Remove duplicate array keys.
Diffstat (limited to 'modules/file')
-rw-r--r--modules/file/file.field.inc3
1 files changed, 1 insertions, 2 deletions
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.'),
);