You are here

function commerce_wishlist_is_public in Commerce Wishlist 7.3

Helper function to determine a wishlist's usability.

1 call to commerce_wishlist_is_public()
commerce_wishlist_user_access in ./commerce_wishlist.module
Determine whether the user has a privilege to manage a wish list.

File

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

Code

function commerce_wishlist_is_public($wishlist) {
  if (!empty($wishlist->commerce_wishlist_visibility[LANGUAGE_NONE][0]['value']) && $wishlist->commerce_wishlist_visibility[LANGUAGE_NONE][0]['value'] == '2') {
    return TRUE;
  }
  return FALSE;
}