You are here

function uc_wishlist_user_cancel in UC Wish List 7

Implements hook_user_cancel().

File

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

Code

function uc_wishlist_user_cancel($edit, $account, $method) {

  // Find and delete any wish lists associated with the user being deleted.
  $result = db_query("SELECT wid FROM {uc_wishlists} WHERE uid = :uid", array(
    ':uid' => $account->uid,
  ));
  foreach ($result as $row) {
    uc_wishlist_delete($row->wid);
  }
}