function blog_view

7.x blog.module blog_view($node, $view_mode)

Implements hook_view().

File

drupal/modules/blog/blog.module, line 69
Enables multi-user blogs.

Code

function blog_view($node, $view_mode) {
  if ($view_mode == 'full' && node_is_page($node)) {
    // Breadcrumb navigation.  l() escapes title, so we should not escape !name.
    drupal_set_breadcrumb(array(l(t('Home'), NULL), l(t('Blogs'), 'blog'), l(t("!name's blog", array('!name' => format_username($node))), 'blog/' . $node->uid)));
  }
  return $node;
}