You are here

function youtube_theme in YouTube Field 7

Same name and namespace in other branches
  1. 8 youtube.module \youtube_theme()

Implements hook_theme().

4 string references to 'youtube_theme'
theme_youtube_video in ./youtube.theme.inc
Theme function for videos.
youtube_colorbox_youtube_thumbnail_link_uri_alter in modules/youtube_colorbox/youtube_colorbox.module
Implements hook_youtube_thumbnail_link_uri_alter().
youtube_settings_form in ./youtube.module
Settings form for the YouTube Field module's configuration page.
youtube_uninstall in ./youtube.install
Implements hook_uninstall().

File

./youtube.module, line 664

Code

function youtube_theme($existing, $type, $theme, $path) {
  return array(
    'youtube_thumbnail' => array(
      'variables' => array(
        'video_id' => NULL,
        'entity_title' => NULL,
        'image_style' => NULL,
        'image_link' => NULL,
      ),
      'file' => 'youtube.theme.inc',
    ),
    'youtube_video' => array(
      'variables' => array(
        'input' => NULL,
        'video_id' => NULL,
        'entity_title' => NULL,
        'size' => NULL,
        'width' => NULL,
        'height' => NULL,
        'autoplay' => FALSE,
        'mute' => FALSE,
        'loop' => FALSE,
        'controls' => FALSE,
        'autohide' => FALSE,
        'iv_load_policy' => FALSE,
        'playsinline' => FALSE,
        'allow_autoplay' => FALSE,
        'allow_fullscreen' => FALSE,
      ),
      'file' => 'youtube.theme.inc',
    ),
  );
}