You are here

function file_is_scheme_remote in Remote Stream Wrapper 7

Same name and namespace in other branches
  1. 8 remote_stream_wrapper.module \file_is_scheme_remote()

Check if a stream wrapper scheme is a remote stream wrapper.

2 calls to file_is_scheme_remote()
remote_stream_wrapper_file_delete in ./remote_stream_wrapper.module
Implements hook_file_delete().
remote_stream_wrapper_file_url_alter in ./remote_stream_wrapper.module
Implements hook_file_url_alter().

File

./remote_stream_wrapper.module, line 104
Provides a remote stream wrapper and file field integration.

Code

function file_is_scheme_remote($scheme) {
  $wrappers = file_get_remote_stream_wrappers();
  return isset($wrappers[$scheme]);
}