function og_block_details in Organic groups 6.2
Same name and namespace in other branches
- 5.8 og.module \og_block_details()
- 5 og.module \og_block_details()
- 5.2 og.module \og_block_details()
- 5.3 og.module \og_block_details()
- 5.7 og.module \og_block_details()
- 6 og.module \og_block_details()
Content for Group Details block.
1 call to og_block_details()
- og_block in ./
og.module - Implementation of hook_block().
File
- ./
og.module, line 2698 - Code for the Organic Groups module.
Code
function og_block_details() {
// Only display group details if we have a group context and something to show.
if (($node = og_get_group_context()) && node_access('view', $node)) {
$links = og_details_links();
if (!empty($links)) {
$block['content'] = theme('item_list', $links);
$block['subject'] = l($node->title, "node/{$node->nid}");
return $block;
}
}
}