You are here

function amazon_item_node_save in Amazon Product Advertisement API 6

Utility functions for managing AmazonItem/Node relationships

File

./amazon.module, line 690

Code

function amazon_item_node_save($asin, $node, $module = 'amazon', $weight = 0) {
  amazon_item_node_delete($asin, $nid, $module);
  db_query("INSERT INTO {amazon_item_node} (asin, vid, nid, module, weight) VALUES ('%s', %d, '%s', %d)", $asin, $nid, $module, $weight);
}