function blog_view
Implements hook_view().
File
-
modules/
blog/ blog.module, line 69
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.