function og_block_details in Organic groups 5.8
Same name and namespace in other branches
- 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.2 og.module \og_block_details()
- 6 og.module \og_block_details()
1 call to og_block_details()
- og_block in ./
og.module - Implementation of hook_block().
File
- ./
og.module, line 2312
Code
function og_block_details() {
// only display group details if we have a group context
if (($node = og_get_group_context()) && node_access('view', $node)) {
// allow other og-enabled node types to provide their own block details
$block = module_invoke($node->type, 'og_block_details', $node);
if (!$block) {
$block = og_og_block_details($node);
}
return $block;
}
}