class comment_CrumbsMonoPlugin_reply in Crumbs, the Breadcrumbs suite 7.2
Same name and namespace in other branches
- 7 plugins/crumbs.comment.inc \comment_CrumbsMonoPlugin_reply
Hierarchy
- class \comment_CrumbsMonoPlugin_reply implements crumbs_MonoPlugin
Expanded class hierarchy of comment_CrumbsMonoPlugin_reply
File
- plugins/
crumbs.comment.inc, line 14
View source
class comment_CrumbsMonoPlugin_reply implements crumbs_MonoPlugin {
/**
* {@inheritdoc}
*/
function describe($api) {
$api
->titleWithLabel(t("The comment's node"), t('Parent'));
}
/**
* findParent callback for comment/reply/%.
* Actually, system paths cam look more like comment/reply/%/%, but the router
* path is comment/reply/%. Complain to the people who wrote comment module.
*
* @param string $path
* @param array $item
*
* @return string
*/
function findParent__comment_reply_x($path, $item) {
$nid = $item['fragments'][2];
return 'node/' . $nid;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
comment_CrumbsMonoPlugin_reply:: |
function |
Overrides crumbs_MonoPlugin:: |
||
comment_CrumbsMonoPlugin_reply:: |
function | findParent callback for comment/reply/%. Actually, system paths cam look more like comment/reply/%/%, but the router path is comment/reply/%. Complain to the people who wrote comment module. |