You are here

class comment_CrumbsMonoPlugin_reply in Crumbs, the Breadcrumbs suite 7.2

Same name and namespace in other branches
  1. 7 plugins/crumbs.comment.inc \comment_CrumbsMonoPlugin_reply

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
comment_CrumbsMonoPlugin_reply::describe function Overrides crumbs_MonoPlugin::describe
comment_CrumbsMonoPlugin_reply::findParent__comment_reply_x 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.