You are here

class comment_CrumbsMonoPlugin_reply in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 7.2 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 {

  /**
   * Describe this plugin for the configuration form.
   */
  function describe($api) {
    return t('Make node/% the parent for comment/reply/%');
  }

  /**
   * 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.
   */
  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 Describe this plugin for the configuration form. 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.