You are here

function _commerce_wishlist_link in Commerce Wishlist 7

Returns html of "Already in wishlist" link. TODO: themeable?

2 calls to _commerce_wishlist_link()
commerce_wishlist_form_alter in ./commerce_wishlist.module
Implements hook_form_alter().
commerce_wishlist_operations in ./commerce_wishlist.module
Menu callback: Perform various actions (add to wishlist etc)

File

./commerce_wishlist.module, line 351
Provides the wishlist for use in Drupal Commerce.

Code

function _commerce_wishlist_link($uid) {
  return t('Already in <a class="in-wishlist" target="_blank" href="@url">wishlist</a>', array(
    '@url' => url('user/' . $uid . '/wishlist'),
  ));
}