function hook_stream_wrappers_alter

hook_stream_wrappers_alter(&$wrappers)

Alters the list of PHP stream wrapper implementations.

See also

file_get_stream_wrappers()

hook_stream_wrappers()

Related topics

File

modules/system/system.api.php, line 2805
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');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_stream_wrappers_alter/7.x