1.20.x file.module file_stream_wrappers_alter(&$wrappers)

Implements hook_stream_wrappers_alter().

Related topics

File

modules/file/file.module, line 2904
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_stream_wrappers_alter(&$wrappers) {
  if (isset($wrappers['private'])) {
    $wrappers['private']['private'] = TRUE;
  }
  if (isset($wrappers['temporary'])) {
    $wrappers['temporary']['private'] = TRUE;
  }
}