You are here

function _og_CrumbsPlugin__group_post::findParent__node__ in Crumbs, the Breadcrumbs suite 6

File

plugins/crumbs.og.inc, line 22

Class

_og_CrumbsPlugin__group_post

Code

function findParent__node__($path, $item) {
  $node = $item['map'][1];
  if (is_array($node->og_groups)) {
    foreach ($node->og_groups as $group_nid) {
      return array(
        $node->type => 'node/' . $group_nid,
      );
    }
  }
}