You are here

class blog_CrumbsMonoPlugin_authorPage in Crumbs, the Breadcrumbs suite 7

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

Hierarchy

Expanded class hierarchy of blog_CrumbsMonoPlugin_authorPage

File

plugins/crumbs.blog.inc, line 13

View source
class blog_CrumbsMonoPlugin_authorPage implements crumbs_MonoPlugin {
  function describe($api) {
    return t("Use the blog author's user account as the parent page, and 'Blog' as the title.");
  }

  /**
   * Still under constructon..
   */
  function findParent__node_x($path, $item) {
    $node = $item['map'][1];

    // Load the node if it hasn't been loaded due to a missing wildcard loader.
    $node = is_numeric($node) ? node_load($node) : $node;
    if ($node->type === 'blog') {
      return 'blog/' . $node->uid;
    }
  }

}

Members