You are here

crumbs.blog.inc in Crumbs, the Breadcrumbs suite 6.2

Same filename and directory in other branches
  1. 7.2 plugins/crumbs.blog.inc
  2. 7 plugins/crumbs.blog.inc

File

plugins/crumbs.blog.inc
View source
<?php

function blog_crumbs_plugins() {
  return new _blog_CrumbsPlugin();
}
class _blog_CrumbsPlugin {
  function findParent__node_x($path, $item) {
    $node = $item['map'][1];
    if ($node->type === 'blog') {
      return 'blog/' . $node->uid;
    }
  }
  function findTitle__blog_x($path, $item) {
    $user = $item['map'][1];
    return t("!name's blog", array(
      '!name' => $user->name,
    ));
  }

}

Functions

Classes

Namesort descending Description
_blog_CrumbsPlugin