You are here

function blog_CrumbsMonoPlugin_authorName::findTitle__blog_x in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 7.2 plugins/crumbs.blog.inc \blog_CrumbsMonoPlugin_authorName::findTitle__blog_x()

Still under constructon..

File

plugins/crumbs.blog.inc, line 43

Class

blog_CrumbsMonoPlugin_authorName

Code

function findTitle__blog_x($path, $item) {
  $user = $item['map'][1];

  // Load the user if it hasn't been loaded due to a missing wildcard loader.
  $user = is_numeric($user) ? user_load($user) : $user;
  return t("!name's blog", array(
    '!name' => format_username($user),
  ));
}