You are here

function file_entity_get_hidden_stream_wrappers in File Entity (fieldable files) 7

Same name and namespace in other branches
  1. 7.3 file_entity.module \file_entity_get_hidden_stream_wrappers()
  2. 7.2 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()
file_entity_admin_files in ./file_entity.admin.inc
Administrative form for browsing files and performing operations on them.

File

./file_entity.module, line 723
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));
}