diff options
Diffstat (limited to 'modules/file')
-rw-r--r-- | modules/file/file.field.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/file/file.field.inc b/modules/file/file.field.inc index 3552229b2..1e6ad8d4b 100644 --- a/modules/file/file.field.inc +++ b/modules/file/file.field.inc @@ -67,7 +67,7 @@ function file_field_schema($field) { /** * Implement hook_field_settings_form(). */ -function file_field_settings_form($field, $instance) { +function file_field_settings_form($field, $instance, $has_data) { $defaults = field_info_field_settings($field['type']); $settings = array_merge($defaults, $field['settings']); @@ -98,6 +98,7 @@ function file_field_settings_form($field, $instance) { '#options' => $scheme_options, '#default_value' => $settings['uri_scheme'], '#description' => t('Select where the final files should be stored. Private file storage has significantly more overhead than public files, but allows restricted access to files within this field.'), + '#disabled' => $has_data, ); $form['default_file'] = array( |