You are here

function theme_asset_embed_dailymotion_thumbnail in Asset 5

Same name and namespace in other branches
  1. 6 asset_embed/providers/dailymotion.inc \theme_asset_embed_dailymotion_thumbnail()

File

asset_embed/providers/dailymotion.inc, line 32

Code

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