You are here

function file_entity_get_hidden_stream_wrappers in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 file_entity.module \file_entity_get_hidden_stream_wrappers()
  2. 7 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.

File

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