function amazon_item_delete in Amazon Product Advertisement API 6
Same name and namespace in other branches
- 7.2 amazon.module \amazon_item_delete()
- 7 amazon.module \amazon_item_delete()
Delete all vestiges of Amazon item.
Parameters
$asin: ASIN to be deleted.
Return value
No return.
3 calls to amazon_item_delete()
- amazon_item_insert in ./
amazon.module - Insert 'cleaned' amazon item into database.
- amazon_test_form_submit in ./
amazon.admin.inc - asin_field in asin/
asin.module - Implementation of hook_field().
File
- ./
amazon.module, line 632
Code
function amazon_item_delete($asin) {
module_invoke_all('amazon_item_delete', $asin);
db_query("DELETE FROM {amazon_item} WHERE asin = '%s'", $asin);
db_query("DELETE FROM {amazon_item_participant} WHERE asin = '%s'", $asin);
db_query("DELETE FROM {amazon_item_image} WHERE asin = '%s'", $asin);
db_query("DELETE FROM {amazon_item_editorial_review} WHERE asin = '%s'", $asin);
}