class _og_CrumbsPlugin__my_groups_overview in Crumbs, the Breadcrumbs suite 6
Same name and namespace in other branches
- 6.2 plugins/crumbs.og.inc \_og_CrumbsPlugin__my_groups_overview
 
Hierarchy
Expanded class hierarchy of _og_CrumbsPlugin__my_groups_overview
File
- plugins/
crumbs.og.inc, line 51  
View source
class _og_CrumbsPlugin__my_groups_overview {
  function define($h) {
    $types = og_get_types('group');
    foreach ($types as $type) {
      $h
        ->addRule($type);
    }
  }
  function findParent__node__($path, $item) {
    $node = $item['map'][1];
    if (isset($node->og_selective)) {
      if (isset($GLOBALS['user']->og_groups[$node->nid])) {
        return array(
          $node->type => 'og/my',
        );
      }
    }
  }
}