diff options
Diffstat (limited to 'modules/image/image.field.inc')
-rw-r--r-- | modules/image/image.field.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/image/image.field.inc b/modules/image/image.field.inc index 07cc1e06b..43e118a70 100644 --- a/modules/image/image.field.inc +++ b/modules/image/image.field.inc @@ -51,16 +51,18 @@ function image_field_settings_form($field, $instance) { '#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.'), ); + // When the user sets the scheme on the UI, even for the first time, it's + // updating a field because fields are created on the "Manage fields" + // page. So image_field_update_field() can handle this change. $form['default_image'] = array( '#title' => t('Default image'), '#type' => 'managed_file', '#description' => t('If no image is uploaded, this image will be shown on display.'), '#default_value' => $field['settings']['default_image'], - '#upload_location' => 'public://default_images/', + '#upload_location' => $settings['uri_scheme'] . '://default_images/', ); return $form; - } /** |