You are here

function commerce_wishlist_remove_wishlist_url in Commerce Wishlist 7.3

Remove a wish list's shareable hash.

Parameters

object $wishlist: The wish list to have it's URL removed.

2 calls to commerce_wishlist_remove_wishlist_url()
commerce_wishlist_add_wishlist_url in ./commerce_wishlist.module
Create and store a shareable URL for a given wish list.
commerce_wishlist_share_submit in ./commerce_wishlist.module
Submit handler: sharing options.

File

./commerce_wishlist.module, line 1225
Provides a wish list for use in Drupal Commerce.

Code

function commerce_wishlist_remove_wishlist_url($wishlist) {
  db_delete('commerce_wishlist_share')
    ->condition('order_id', $wishlist->order_id)
    ->execute();
}