You are here

function similarterms_block_view in Similar By Terms 7

Same name and namespace in other branches
  1. 6 similarterms.module \similarterms_block_view()

Implements hook_block_view().

File

./similarterms.module, line 65
Similar By Terms module displays a block with similar content based on taxonomy terms.

Code

function similarterms_block_view($delta = '') {
  $vocid = $delta ? $delta : 'all';
  $block = array(
    'subject' => t('Similar'),
    'content' => theme('similarterms', array(
      'display_options' => variable_get('similarterms_display_options', 'title_only'),
      'nodes' => similarterms_list($vocid),
    )),
  );
  return $block;
}