function amazon_token_values in Amazon Product Advertisement API 6
File
- ./
amazon.module, line 837
Code
function amazon_token_values($type, $object = NULL, $options = array()) {
if ($type == 'amazon_item' || $type == 'all') {
$item = (array) $object;
$values['asin'] = check_plain($item['asin']);
$values['isbn'] = check_plain($item['isbn']);
$values['ean'] = check_plain($item['ean']);
$values['detailpageurl'] = check_url($item['detailpageurl']);
$values['salesrank'] = check_plain($item['salesrank']);
$values['brand'] = check_plain($item['brand']);
$values['publisher'] = check_plain($item['publisher']);
$values['manufacturer'] = check_plain($item['manufacturer']);
$values['studio'] = check_plain($item['studio']);
$values['label'] = check_plain($item['label']);
$values['binding'] = check_plain($item['binding']);
$values['releasedate'] = check_plain($item['releasedate']);
$values['listprice'] = check_plain($item['listpriceformattedprice']);
$values['producttype'] = check_plain($item['producttype']);
$values['lowestprice'] = check_plain($item['lowestpriceformattedprice']);
$values['amazonprice'] = check_plain($item['amazonpriceformattedprice']);
return $values;
}
}