function hook_stream_wrappers_alter
7.x system.api.php | hook_stream_wrappers_alter(&$wrappers) |
Alters the list of PHP stream wrapper implementations.
See also
Related topics
1 invocation of hook_stream_wrappers_alter()
- file_get_stream_wrappers in drupal-7.x/
includes/ file.inc - Provides Drupal stream wrapper registry.
File
- drupal-7.x/
modules/ system/ system.api.php, line 2735 - Hooks provided by Drupal core and the System module.
Code
function hook_stream_wrappers_alter(&$wrappers) {
// Change the name of private files to reflect the performance.
$wrappers['private']['name'] = t('Slow files');
}