You are here

protected function og_CrumbsMultiPlugin_my_groups_overview::getGroupsOverviewPath in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 7.2 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.

File

plugins/crumbs.og.2.inc, line 192

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', $node->nid)) {

    // Use the parent implementation.
    return parent::getGroupsOverviewPath($group_node);
  }
}