diff options
Diffstat (limited to 'modules/image/image.field.inc')
-rw-r--r-- | modules/image/image.field.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/image/image.field.inc b/modules/image/image.field.inc index 1b4a96852..39fcf2c10 100644 --- a/modules/image/image.field.inc +++ b/modules/image/image.field.inc @@ -72,10 +72,8 @@ function image_field_settings_form($field, $instance) { $settings = array_merge($defaults, $field['settings']); $scheme_options = array(); - foreach (file_get_stream_wrappers() as $scheme => $stream_wrapper) { - if ($scheme != 'temporary') { - $scheme_options[$scheme] = $stream_wrapper['name']; - } + foreach (file_get_stream_wrappers(STREAM_WRAPPERS_WRITE_VISIBLE) as $scheme => $stream_wrapper) { + $scheme_options[$scheme] = $stream_wrapper['name']; } $form['uri_scheme'] = array( '#type' => 'radios', |