1 file.module | file_get_stream_wrapper($scheme) |
Return a specific stream wrapper's registry information.
Parameters
$scheme: A URI scheme, a stream is referenced as "scheme://target".
See also
Related topics
File
- core/
modules/ file/ file.module, line 2862 - Defines a "managed_file" Form API field and a "file" field for Field module.
Code
function file_get_stream_wrapper($scheme) {
$wrappers = file_get_stream_wrappers();
return isset($wrappers[$scheme]) ? $wrappers[$scheme] : FALSE;
}