/** * Implementation of hook_view(). */ 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); } return node_prepare($node, $teaser); } // EXAMPLE FROM LATER IN THE BLOG.MODULE WHERE I WAS ABLE TO ADD NOFOLLOW /** * Implementation of hook_link(). */ function blog_link($type, $node = NULL, $teaser = FALSE) { $links = array(); if ($type == 'node' && $node->type == 'blog') { if (arg(0) != 'blog' || arg(1) != $node->uid) { $links['blog_usernames_blog'] = array( 'title' => t("@username's blog", array('@username' => $node->name)), 'href' => "blog/$node->uid", 'attributes' => array('title' => t("Read @username's latest blog entries.", array('@username' => $node->name)), 'rel' => 'nofollow') ); } } return $links; }