You are here

class blog_CrumbsMonoPlugin_authorPage in Crumbs, the Breadcrumbs suite 7.2

Same name and namespace in other branches
  1. 7 plugins/crumbs.blog.inc \blog_CrumbsMonoPlugin_authorPage

Hierarchy

Expanded class hierarchy of blog_CrumbsMonoPlugin_authorPage

File

plugins/crumbs.blog.inc, line 15

View source
class blog_CrumbsMonoPlugin_authorPage implements crumbs_MonoPlugin {

  /**
   * {@inheritdoc}
   */
  function describe($api) {
    $api
      ->titleWithLabel(t("The author's blog page"), t('Parent'));
  }

  /**
   * Still under constructon..
   *
   * @param string $path
   * @param array $item
   *
   * @return null|string
   */
  function findParent__node_x($path, $item) {
    $node = crumbs_Util::itemExtractEntity($item, 'node', 1);
    if ($node === FALSE || $node->type !== 'blog') {
      return NULL;
    }
    return 'blog/' . $node->uid;
  }

}

Members