function similarterms_block_view in Similar By Terms 6
Same name and namespace in other branches
- 7 similarterms.module \similarterms_block_view()
Perform the "view" op for hook_block().
Parameters
$delta: String specifying which block to proocess.
Return value
Array of block contents and title.
1 call to similarterms_block_view()
- similarterms_block in ./
similarterms.module - Implementation of hook_block().
File
- ./
similarterms.module, line 93 - Similar By Terms module displays a block with similar content based on taxonomy terms.
Code
function similarterms_block_view($delta) {
if ($delta == 0) {
$block['subject'] = t('Similar');
$block['content'] = theme('similarterms', variable_get('similarterms_display_options', 'title_only'), similarterms_list());
}
else {
$block['subject'] = t('Similar');
$block['content'] = theme('similarterms', variable_get('similarterms_display_options', 'title_only'), similarterms_list($delta));
}
return $block;
}