You are here

function media_get_hidden_stream_wrappers in D7 Media 7

Helper function to get a list of hidden stream wrappers.

This is used in several places to filter queries for media so that files in temporary:// don't show up.

3 calls to media_get_hidden_stream_wrappers()
media_admin_list in includes/media.admin.inc
Form builder: Builds the media list administration overview.
media_admin_thumbnails in includes/media.admin.inc
Form builder: Builds the media thumbnails administration overview.
media_browser_list in includes/media.browser.inc
AJAX Callback function to return a list of media files

File

./media.module, line 1156
Media API

Code

function media_get_hidden_stream_wrappers() {
  return array_diff_key(file_get_stream_wrappers(STREAM_WRAPPERS_ALL), file_get_stream_wrappers(STREAM_WRAPPERS_VISIBLE));
}