You are here

function theme_asset_embed_thumbnail in Asset 5

Same name and namespace in other branches
  1. 6 asset_embed/inc/asset_embed.themes.inc \theme_asset_embed_thumbnail()
1 theme call to theme_asset_embed_thumbnail()
asset_embed_asset_formatter in asset_embed/asset_embed.module

File

asset_embed/asset_embed.module, line 235
Asset Embed Module

Code

function theme_asset_embed_thumbnail($asset) {
  $id = $asset->embed['id'];
  $url = "http://img.youtube.com/vi/{$id}/2.jpg";
  $alt = $title = $asset->title;
  $img = '<img src="' . check_url($url) . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '" />';
  return $img;
}