You are here

function blog_view in Drupal 6

Same name and namespace in other branches
  1. 4 modules/blog.module \blog_view()
  2. 5 modules/blog/blog.module \blog_view()
  3. 7 modules/blog/blog.module \blog_view()

Implementation of hook_view().

File

modules/blog/blog.module, line 105
Enables keeping an easily and regularly updated web page or a blog.

Code

function blog_view($node, $teaser = FALSE, $page = FALSE) {
  if ($page) {

    // Breadcrumb navigation. l() escapes the 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' => $node->name,
      )), 'blog/' . $node->uid),
    ));
  }
  return node_prepare($node, $teaser);
}