You are here

function vote_storylink_view in Vote Up/Down 5

Implementation of hook_view().

File

./vote_storylink.module, line 172

Code

function vote_storylink_view($node, $teaser = FALSE, $page = FALSE) {
  if ($page) {

    // Breadcrumb navigation
    $breadcrumb[] = array(
      'path' => 'storylink',
      'title' => t('Story links'),
    );
    $breadcrumb[] = array(
      'path' => 'storylink/' . $node->uid,
      'title' => t("@name's story links", array(
        '@name' => $node->name,
      )),
    );
    $breadcrumb[] = array(
      'path' => 'node/' . $node->nid,
    );
    menu_set_location($breadcrumb);
  }
  $node = node_prepare($node, $teaser);
  return $node;
}