You are here

function _taxonomy_CrumbsMultiPlugin_termReference_node::findParent__node_x in Crumbs, the Breadcrumbs suite 7

Match "node/%" router path

File

plugins/crumbs.taxonomy.inc, line 105

Class

_taxonomy_CrumbsMultiPlugin_termReference_node

Code

function findParent__node_x($path, $item) {
  $node = $item['map'][1];

  // Load the node if it hasn't been loaded due to a missing wildcard loader.
  $node = is_numeric($node) ? node_load($node) : $node;
  $parent_path = $this
    ->_findParentPath($node);
  if ($parent_path) {
    return array(
      $node->type => $parent_path,
    );
  }
}