You are here

function clamav_get_remote_schemes in ClamAV 7

Return a list of all remote (non-local) schemes.

Return value

Array of scheme names.

2 calls to clamav_get_remote_schemes()
clamav_scheme_options in ./clamav.admin.inc
Provide an array of checkbox options for all stream wrappers.
clamav_scheme_options_defaults in ./clamav.admin.inc
Return defaults for scheme checkboxes.

File

./clamav.admin.inc, line 199
Admin-pages for managing the ClamAV module.

Code

function clamav_get_remote_schemes() {
  $all_schemes = array_keys(file_get_stream_wrappers());
  $local_schemes = array_keys(file_get_stream_wrappers(STREAM_WRAPPERS_LOCAL));
  $remote_schemes = array_diff($all_schemes, $local_schemes);
  return $remote_schemes;
}