function blog_view in Drupal 4
Same name and namespace in other branches
- 5 modules/blog/blog.module \blog_view()
- 6 modules/blog/blog.module \blog_view()
- 7 modules/blog/blog.module \blog_view()
Implementation of hook_view().
File
- modules/
blog.module, line 232 - 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
$breadcrumb[] = array(
'path' => 'blog',
'title' => t('blogs'),
);
$breadcrumb[] = array(
'path' => 'blog/' . $node->uid,
'title' => t("%name's blog", array(
'%name' => $node->name,
)),
);
$breadcrumb[] = array(
'path' => 'node/' . $node->nid,
);
menu_set_location($breadcrumb);
}
$node = node_prepare($node, $teaser);
}