class blog_CrumbsMonoPlugin_authorName in Crumbs, the Breadcrumbs suite 7.2
Same name and namespace in other branches
- 7 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 44
View source
class blog_CrumbsMonoPlugin_authorName implements crumbs_MonoPlugin {
/**
* {@inheritdoc}
*/
function describe($api) {
$api
->titleWithLabel(t('"!name\'s blog", where !name is the author\'s username.'), t('Title'));
}
/**
* Still under constructon..
*
* @param string $path
* @param array $item
*
* @return null|string
*/
function findTitle__blog_x($path, $item) {
if (FALSE === ($user = crumbs_Util::itemExtractEntity($item, 'user', 1))) {
return NULL;
}
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.. |