function media_youtube_stream_wrappers in Media: YouTube 7.3
Same name and namespace in other branches
- 7 media_youtube.module \media_youtube_stream_wrappers()
 - 7.2 media_youtube.module \media_youtube_stream_wrappers()
 
Implements hook_stream_wrappers().
File
- ./
media_youtube.module, line 26  - Provides a stream wrapper and formatters appropriate for accessing and displaying YouTube videos.
 
Code
function media_youtube_stream_wrappers() {
  return array(
    'youtube' => array(
      'name' => t('YouTube videos'),
      'class' => 'MediaYouTubeStreamWrapper',
      'description' => t('Remote videos hosted on the YouTube video-sharing website.'),
      'type' => STREAM_WRAPPERS_READ_VISIBLE,
    ),
  );
}