function blog_CrumbsMonoPlugin_authorPage::findParent__node_x in Crumbs, the Breadcrumbs suite 7
Same name and namespace in other branches
- 7.2 plugins/crumbs.blog.inc \blog_CrumbsMonoPlugin_authorPage::findParent__node_x()
Still under constructon..
File
- plugins/
crumbs.blog.inc, line 22
Class
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;
if ($node->type === 'blog') {
return 'blog/' . $node->uid;
}
}