function theme_asin_formatter_details in Amazon Product Advertisement API 6
Theme function for 'full' asin field formatter, appropriate for product highlighting and display.
File
- asin/
asin.module, line 239 - Defines a field type for referencing an Amazon product.
Code
function theme_asin_formatter_details($element) {
$asin = trim($element['#item']['asin']);
if (!empty($asin)) {
$asins = amazon_item_lookup(array(
$asin,
));
return theme('amazon_item', $asins["{$asin}"], 'details');
}
}