You are here

function s3fs_stream_wrappers in S3 File System 7.3

Same name and namespace in other branches
  1. 7 s3fs.module \s3fs_stream_wrappers()
  2. 7.2 s3fs.module \s3fs_stream_wrappers()

Implements hook_stream_wrappers().

Defines the s3:// stream wrapper.

File

./s3fs.module, line 23
Hook implementations and other primary functionality for S3 File System.

Code

function s3fs_stream_wrappers() {

  // On bootstrap of a fresh install with Composer Manager,
  // the composer autoloader needs to be loaded.
  if (module_exists('composer_manager')) {
    composer_manager_register_autoloader();
  }
  return array(
    's3' => array(
      'name' => 'S3 File System',
      'class' => 'S3fsStreamWrapper',
      'description' => t('Amazon Simple Storage Service'),
      'type' => STREAM_WRAPPERS_NORMAL,
    ),
  );
}