You are here

function remote_stream_wrapper_stream_wrappers in Remote Stream Wrapper 7

Implements hook_stream_wrappers().

File

./remote_stream_wrapper.module, line 68
Provides a remote stream wrapper and file field integration.

Code

function remote_stream_wrapper_stream_wrappers() {
  $info['http'] = array(
    'name' => t('HTTP URLs'),
    'class' => 'DrupalRemoteStreamWrapper',
    'description' => t('Remote files.'),
    'type' => STREAM_WRAPPERS_REMOTE,
    'remote' => TRUE,
  );
  $info['https'] = $info['http'];
  $info['https']['name'] = t('HTTPS URLs');
  $info['feed'] = $info['http'];
  $info['feed']['name'] = t('Feed URLs');
  return $info;
}