You are here

function amazon_similar_amazon_item_delete in Amazon Product Advertisement API 7

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

Implements hook_amazon_item_delete().

File

amazon_similar/amazon_similar.module, line 68
amazon_similar.module Retrieves and stores a list of similar ASIN numbers for each product.

Code

function amazon_similar_amazon_item_delete($asin) {
  db_query("DELETE FROM {amazon_similar} WHERE item = :item", array(
    ':item' => $asin,
  ));
}