function blog_view
Same name and namespace in other branches
- 6.x drupal-6.x/modules/blog/blog.module \blog_view()
Implements hook_view().
Archivo
- drupal-7.x/
modules/ blog/ blog.module, line 69 - Enables multi-user blogs.
Código
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;
}