You are here

function uc_wishlist_delete in UC Wish List 7

Same name and namespace in other branches
  1. 6 uc_wishlist.module \uc_wishlist_delete()

Deletes a wish list and all its products.

2 calls to uc_wishlist_delete()
uc_wishlist_admin_delete_form_submit in ./uc_wishlist.admin.inc
Submission handler for wish list deletion form.
uc_wishlist_user_cancel in ./uc_wishlist.module
Implements hook_user_cancel().

File

./uc_wishlist.module, line 926
Allows users to create public shopping/wish lists.

Code

function uc_wishlist_delete($wid) {
  db_delete('uc_wishlists')
    ->condition('wid', $wid)
    ->execute();
  db_delete('uc_wishlist_products')
    ->condition('wid', $wid)
    ->execute();
}