You are here

function uc_wishlist_block in UC Wish List 6

Implementation of hook_block().

File

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

Code

function uc_wishlist_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {

    // Return a list of blocks enabled by this module.
    case 'list':
      $blocks[1]['info'] = t('Find a wish list');
      return $blocks;
    case 'view':
      if ($delta == 1) {
        $block['subject'] = t('Find a wish list');
        $block['content'] = drupal_get_form('uc_wishlist_block_search_form');
      }
      return $block;
  }
}