function blog_view in Drupal 7
Same name and namespace in other branches
- 4 modules/blog.module \blog_view()
- 5 modules/blog/blog.module \blog_view()
- 6 modules/blog/blog.module \blog_view()
Implements hook_view().
File
- 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;
}