You are here

function commerce_wishlist_update_7300 in Commerce Wishlist 7.3

Convert wish lists to use orders.

File

./commerce_wishlist.install, line 22
Installation hooks.

Code

function commerce_wishlist_update_7300(&$sandbox) {
  commerce_wishlist_create_visibility_field();
  if (db_table_exists('commerce_wishlist')) {
    if (db_table_exists('commerce_wishlist_item')) {
      commerce_wishlist_upgrade_from_2x_to_3x($sandbox);
    }
    else {
      commerce_wishlist_upgrade_from_1x_to_3x($sandbox);
    }
  }
}