protected function og_CrumbsMultiPlugin_my_groups_overview::getGroupsOverviewPath in Crumbs, the Breadcrumbs suite 7.2
Same name and namespace in other branches
- 7 plugins/crumbs.og.2.inc \og_CrumbsMultiPlugin_my_groups_overview::getGroupsOverviewPath()
Overridable helper method to actually find the parent path, once we know it is a group node.
Parameters
stdClass $group_node: The node at this path, of which we know it is a group node.
Return value
array
File
- plugins/
crumbs.og.2.inc, line 215
Class
- og_CrumbsMultiPlugin_my_groups_overview
- Make $my_groups_path the parent path for group nodes where the current user is a member. The priorities can be configured per group node type.
Code
protected function getGroupsOverviewPath($group_node) {
// Check if the current user is a group member.
if (og_is_member('node', $group_node->nid)) {
// Use the parent implementation.
return parent::getGroupsOverviewPath($group_node);
}
return NULL;
}