function _forum_CrumbsPlugin__term_node::findParent__node_x in Crumbs, the Breadcrumbs suite 6.2
Forum nodes get their forum terms as breadcrumb parents. The method name matches the router path "node/%".
File
- plugins/
crumbs.forum.inc, line 54
Class
Code
function findParent__node_x($path, $item) {
$node = $item['map'][0];
if ($node->type == 'forum' && is_array($node->taxonomy)) {
$result = array();
foreach ($node->taxonomy as $tid => $term) {
if ($term->vid == $this->_forum_vid) {
return 'forum/' . $tid;
}
}
}
}