You are here

function theme_asin_formatter_thumbnail in Amazon Product Advertisement API 6

Theme function for 'thumbnail' asin field formatter, appropriate for product highlighting and display.

File

asin/asin.module, line 227
Defines a field type for referencing an Amazon product.

Code

function theme_asin_formatter_thumbnail($element) {
  $asin = trim($element['#item']['asin']);
  if (!empty($asin)) {
    $asins = amazon_item_lookup("{$asin}");
    return theme('amazon_item', $asins["{$asin}"], 'thumbnail');
  }
}