function _nodereference_CrumbsPlugin::findParent__node__ in Crumbs, the Breadcrumbs suite 6
Match "node/%" router path
File
- plugins/
crumbs.nodereference.inc, line 43
Class
- _nodereference_CrumbsPlugin
- Implementation of class hook CrumbsPlugin on the behalf of menu module.
Code
function findParent__node__($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;
}