1 file.module | file_stream_wrappers_alter(&$wrappers) |
Implements hook_stream_wrappers_alter().
Related topics
File
- core/
modules/ file/ file.module, line 2871 - 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;
}
}