You are here

function uc_wishlist_update_purchase in UC Wish List 7

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

Used by uc_wishlist_order to update the data on the wish list item purchase.

1 call to uc_wishlist_update_purchase()
uc_wishlist_uc_order in ./uc_wishlist.module
Implements hook_uc_order().

File

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

Code

function uc_wishlist_update_purchase($witem) {
  if ($witem->wpid && is_array($witem->purchase)) {
    $rv = db_update('uc_wishlist_products')
      ->fields(array(
      'purchase' => serialize($witem->purchase),
    ))
      ->condition('wpid', $witem->wpid)
      ->execute();
  }
}