You are here

function uc_wishlist_block_view in UC Wish List 7

Implements hook_block_view().

File

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

Code

function uc_wishlist_block_view($delta) {
  $block = array();
  if (user_access('access wish lists')) {
    if ($delta == 'search') {
      $block['subject'] = t('Find a wish list');
      $block['content'] = drupal_get_form('uc_wishlist_block_search_form');
    }
  }
  return $block;
}