You are here

function amazon_media_amazon_item_load in Amazon Product Advertisement API 7

Same name and namespace in other branches
  1. 6 amazon_media/amazon_media.module \amazon_media_amazon_item_load()
  2. 7.2 amazon_media/amazon_media.module \amazon_media_amazon_item_load()

Load and return additional information for an Amazon item.

Parameters

$item: The item requiring additions.

Return value

The added array elements, as an array.

File

amazon_media/amazon_media.module, line 98
Provides additional behaviors and data type for amazon items which are DVDs, software, video games, music, etc.

Code

function amazon_media_amazon_item_load($item) {
  $table = amazon_media_get_table_name($item);
  if (!empty($table)) {
    $additions = db_select($table)
      ->condition('asin', $item['asin'])
      ->fields($table)
      ->execute()
      ->fetchAssoc();
    return $additions;
  }
}