amazon_token_values

Versions
6
amazon_token_values($type, $object = NULL, $options = array())

Code

contrib-6/amazon/amazon.module, line 834

<?php
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;
  }
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options