You are here

function hook_stream_wrappers_alter in Drupal 7

Alters the list of PHP stream wrapper implementations.

See also

file_get_stream_wrappers()

hook_stream_wrappers()

Related topics

1 invocation of hook_stream_wrappers_alter()
file_get_stream_wrappers in includes/file.inc
Provides Drupal stream wrapper registry.

File

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