function theme_asin_formatter_inline in Amazon Product Advertisement API 6
Theme function for 'inline' asin field formatter, appropriate for quick title lists, etc.
File
- asin/
asin.module, line 251 - Defines a field type for referencing an Amazon product.
Code
function theme_asin_formatter_inline($element) {
if ($asin = trim($element['#item']['asin'])) {
$asins = amazon_item_lookup("{$asin}");
return theme('amazon_inline_item', $asins[$asin]);
}
}