diff options
author | David Rothstein <drothstein@gmail.com> | 2012-07-29 22:27:34 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-07-29 22:27:34 -0400 |
commit | 8bd1079972d6936b571c9aa3fa26f1bb960defe7 (patch) | |
tree | d732dac78016db49e414f90691cfa27fbe2c545d /modules/file | |
parent | 41f11d40b2eec1872ff771be2dd20ab28db81698 (diff) | |
download | brdo-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.inc | 3 |
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.'), ); |