You are here

function media_soundcloud_stream_wrappers in Media: SoundCloud 7.2

Same name and namespace in other branches
  1. 7 media_soundcloud.module \media_soundcloud_stream_wrappers()

Implements hook_stream_wrappers().

File

./media_soundcloud.module, line 26
Provides a stream wrapper and formatters appropriate for accessing and displaying SoundCloud audio.

Code

function media_soundcloud_stream_wrappers() {
  return array(
    'soundcloud' => array(
      'name' => t('SoundCloud audio'),
      'class' => 'MediaSoundCloudStreamWrapper',
      'description' => t('Audio provided by SoundCloud.'),
      'type' => STREAM_WRAPPERS_READ_VISIBLE,
    ),
  );
}