function comment_CrumbsMonoPlugin_comment::findParent__comment_x in Crumbs, the Breadcrumbs suite 7
Same name and namespace in other branches
- 7.2 plugins/crumbs.comment.inc \comment_CrumbsMonoPlugin_comment::findParent__comment_x()
Make node/% the parent for comment/%. This also completes the breadcrumb for other comment/%/* paths.
File
- plugins/
crumbs.comment.inc, line 48
Class
Code
function findParent__comment_x($path, $item) {
$comment = comment_load($item['map'][1]);
if ($comment && $comment->nid) {
return 'node/' . $comment->nid;
}
}