function blog_view

Same name and namespace in other branches
  1. 7.x drupal-7.x/modules/blog/blog.module \blog_view()

Implementation of hook_view().

Archivo

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

Código

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);
}