function uc_wishlist_user_delete in UC Wish List 7
Implements hook_user_delete().
File
- ./
uc_wishlist.module, line 343 - Allows users to create public shopping/wish lists.
Code
function uc_wishlist_user_delete($account) {
db_query("delete from {uc_wishlist_products} where wid in (select wid from {uc_wishlists} where uid = :uid)", array(
':uid' => $account->uid,
));
db_delete("uc_wishlists")
->condition('uid', $account->uid)
->execute();
}