You are here

function amazon_token_list in Amazon Product Advertisement API 6

File

./amazon.module, line 815

Code

function amazon_token_list($type = 'all') {
  if ($type == 'amazon_item' || $type == 'all') {
    $tokens['amazon_item']['asin'] = t('Product ID');
    $values['amazon_item']['isbn'] = t('The 10-digit ISBN (International Standard Book Number)');
    $values['amazon_item']['ean'] = t('The EAN or 13-digit ISBN');
    $tokens['amazon_item']['detailpageurl'] = t('The detail page URL for the item');
    $tokens['amazon_item']['salesrank'] = t("The product's sales rank");
    $tokens['amazon_item']['brand'] = t("The product's brand");
    $tokens['amazon_item']['publisher'] = t("The product's publisher");
    $tokens['amazon_item']['manufacturer'] = t("The product's manufacturer");
    $tokens['amazon_item']['studio'] = t("The product's studio");
    $tokens['amazon_item']['label'] = t("The product's label");
    $tokens['amazon_item']['binding'] = t("The product's binding type");
    $tokens['amazon_item']['releasedate'] = t("The product's release date");
    $tokens['amazon_item']['listprice'] = t("The product's list price");
    $tokens['amazon_item']['producttype'] = t("The product's Amazon product type");
    $values['amazon_item']['lowestprice'] = t('The lowest price currently offered by any merchant at Amazon');
    $values['amazon_item']['amazonprice'] = t('Current price offered by Amazon');
    return $tokens;
  }
}