You are here

function media_youtube_theme in Media: YouTube 7.3

Same name and namespace in other branches
  1. 6 media_youtube.module \media_youtube_theme()
  2. 7 media_youtube.module \media_youtube_theme()
  3. 7.2 media_youtube.module \media_youtube_theme()

Implements hook_theme().

File

./media_youtube.module, line 40
Provides a stream wrapper and formatters appropriate for accessing and displaying YouTube videos.

Code

function media_youtube_theme($existing, $type, $theme, $path) {
  return array(
    'media_youtube_video' => array(
      'variables' => array(
        'uri' => NULL,
        'options' => array(),
      ),
      'file' => 'media_youtube.theme.inc',
      'path' => $path . '/themes',
      'template' => 'media-youtube-video',
    ),
  );
}