You are here

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

Match "node/%" router path

File

plugins/crumbs.nodereference.inc, line 47

Class

_nodereference_CrumbsPlugin
Implementation of class hook CrumbsPlugin on the behalf of menu module.

Code

function findParent__node_x($path, $item) {
  $node = $item['map'][0];
  $result = array();
  if ($ref_nid = $this
    ->_readParentNodeReference($node)) {
    $result[$node->type] = 'node/' . $ref_nid;
  }

  // return all candidates, so crumbs can sort them according to priority settings.
  return $result;
}