You are here

class og_CrumbsMultiPlugin_my_groups_overview in Crumbs, the Breadcrumbs suite 7.2

Same name in this branch
  1. 7.2 plugins/crumbs.og.inc \og_CrumbsMultiPlugin_my_groups_overview
  2. 7.2 plugins/crumbs.og.2.inc \og_CrumbsMultiPlugin_my_groups_overview
Same name and namespace in other branches
  1. 7 plugins/crumbs.og.inc \og_CrumbsMultiPlugin_my_groups_overview
  2. 7 plugins/crumbs.og.2.inc \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.

Hierarchy

Expanded class hierarchy of og_CrumbsMultiPlugin_my_groups_overview

File

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

View source
class og_CrumbsMultiPlugin_my_groups_overview extends og_CrumbsMultiPlugin_groups_overview {

  /**
   * Overridable helper method to actually find the parent path,
   * once we know it is a group node.
   *
   * @param stdClass $group_node
   *   The node at this path, of which we know it is a group node.
   * @return array
   */
  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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
og_CrumbsMultiPlugin_my_groups_overview::getGroupsOverviewPath protected function Overridable helper method to actually find the parent path, once we know it is a group node.