class blog_CrumbsMonoPlugin_authorPage in Crumbs, the Breadcrumbs suite 7
Same name and namespace in other branches
- 7.2 plugins/crumbs.blog.inc \blog_CrumbsMonoPlugin_authorPage
Hierarchy
- class \blog_CrumbsMonoPlugin_authorPage implements crumbs_MonoPlugin
Expanded class hierarchy of blog_CrumbsMonoPlugin_authorPage
File
- plugins/
crumbs.blog.inc, line 13
View source
class blog_CrumbsMonoPlugin_authorPage implements crumbs_MonoPlugin {
function describe($api) {
return t("Use the blog author's user account as the parent page, and 'Blog' as the title.");
}
/**
* Still under constructon..
*/
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;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
blog_CrumbsMonoPlugin_authorPage:: |
function |
Overrides crumbs_MonoPlugin:: |
||
blog_CrumbsMonoPlugin_authorPage:: |
function | Still under constructon.. |