You are here

function uc_wishlist_update_wishlist in UC Wish List 6

1 call to uc_wishlist_update_wishlist()
uc_wishlist_settings_form_submit in ./uc_wishlist.pages.inc

File

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

Code

function uc_wishlist_update_wishlist($wid, $title, $date, $address, $description) {

  // TODO: Combine with uc_wishlist_create_wishlist?
  $addrstr = serialize($address);
  db_query("UPDATE {uc_wishlists} SET title = '%s', expiration = %d, address = '%s', description = '%s' WHERE wid = %d", $title, $date, $addrstr, $description, $wid);
}