class blog_CrumbsMonoPlugin_authorName in Crumbs, the Breadcrumbs suite 7
Same name and namespace in other branches
- 7.2 plugins/crumbs.blog.inc \blog_CrumbsMonoPlugin_authorName
Hierarchy
- class \blog_CrumbsMonoPlugin_authorName implements crumbs_MonoPlugin
Expanded class hierarchy of blog_CrumbsMonoPlugin_authorName
File
- plugins/
crumbs.blog.inc, line 34
View source
class blog_CrumbsMonoPlugin_authorName implements crumbs_MonoPlugin {
function describe($api) {
return t("Set '!name's blog' as the blog title, where !name is the author's username");
}
/**
* Still under constructon..
*/
function findTitle__blog_x($path, $item) {
$user = $item['map'][1];
// Load the user if it hasn't been loaded due to a missing wildcard loader.
$user = is_numeric($user) ? user_load($user) : $user;
return t("!name's blog", array(
'!name' => format_username($user),
));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
blog_CrumbsMonoPlugin_authorName:: |
function |
Overrides crumbs_MonoPlugin:: |
||
blog_CrumbsMonoPlugin_authorName:: |
function | Still under constructon.. |