You are here

function _og_CrumbsPlugin__group_post::findParent__node_x in Crumbs, the Breadcrumbs suite 6.2

File

plugins/crumbs.og.inc, line 22

Class

_og_CrumbsPlugin__group_post

Code

function findParent__node_x($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,
      );
    }
  }
}