function file_entity_get_hidden_stream_wrappers

cis7 file_entity.module file_entity_get_hidden_stream_wrappers()
cle7 file_entity.module file_entity_get_hidden_stream_wrappers()
elmsmedia7 file_entity.module file_entity_get_hidden_stream_wrappers()
icor7 file_entity.module file_entity_get_hidden_stream_wrappers()
meedjum_blog7 file_entity.module file_entity_get_hidden_stream_wrappers()
mooc7 file_entity.module file_entity_get_hidden_stream_wrappers()

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.

1 call to file_entity_get_hidden_stream_wrappers()
media_query_media_browser_alter in sites/all/modules/ulmus/media/media.media.inc
Implements hook_query_media_browser_alter().

File

sites/all/modules/ulmus/file_entity/file_entity.module, line 1517
Extends Drupal file entities to be fieldable and viewable.

Code

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