You are here

function theme_asset_embed_youtube_thumbnail in Asset 6

Same name and namespace in other branches
  1. 5 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) . '"' . drupal_attributes(array(
    'alt' => $alt,
    'title' => $title,
  )) . ' />';
  return $img;
}