You are here

function media_get_remote_stream_wrappers in D7 Media 7

Same name and namespace in other branches
  1. 7.4 media.module \media_get_remote_stream_wrappers()
  2. 7.2 media.module \media_get_remote_stream_wrappers()
  3. 7.3 media.module \media_get_remote_stream_wrappers()

Helper function to get a list of remote stream wrappers.

1 call to media_get_remote_stream_wrappers()
media_browser_list in includes/media.browser.inc
AJAX Callback function to return a list of media files

File

./media.module, line 1170
Media API

Code

function media_get_remote_stream_wrappers() {
  $wrappers = file_get_stream_wrappers();
  $wrappers = array_diff_key($wrappers, file_get_stream_wrappers(STREAM_WRAPPERS_LOCAL_NORMAL));
  $wrappers = array_diff_key($wrappers, file_get_stream_wrappers(STREAM_WRAPPERS_LOCAL_HIDDEN));
  return $wrappers;
}