function _og_subgroups_hierarchy_block in Subgroups for Organic groups 6
Generate the group hierarchy block
1 call to _og_subgroups_hierarchy_block()
- og_subgroups_block in ./
og_subgroups.module - Implementation of hook_block().
File
- ./
og_subgroups.module, line 231 - Maintains a hierarchy of groups created by the orgainc groups module.
Code
function _og_subgroups_hierarchy_block() {
// Only generate the block if we're inside a group
if ($group = og_get_group_context()) {
// See if we have a tree for this group
if ($menu_tree = theme('og_subgroups_menu_tree', $group)) {
// Return the constructed block
return array(
'subject' => t('Subgroups'),
'content' => $menu_tree,
);
}
}
return NULL;
}