You are here

function theme_asset_embed_youtube_thumbnail in Asset 5

Same name and namespace in other branches
  1. 6 asset_embed/providers/youtube.inc \theme_asset_embed_youtube_thumbnail()
1 theme call to theme_asset_embed_youtube_thumbnail()
asset_embed_youtube_formatter_options in asset_embed/providers/youtube.inc

File

asset_embed/providers/youtube.inc, line 32

Code

function theme_asset_embed_youtube_thumbnail($asset, $attr = array()) {
  $url = asset_embed_youtube_thumbnail_src($asset, $attr);
  $alt = $title = $asset->title;
  $img = '<img src="' . check_url($url) . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '" />';
  return $img;
}