You are here

function vote_storylink_link in Vote Up/Down 5

Implementation of hook_link().

File

./vote_storylink.module, line 256

Code

function vote_storylink_link($type, $node = NULL, $teaser = FALSE) {
  $links = array();
  if ($teaser && $type == 'node' && $node->type == 'storylink') {
    $links['vote_storylink'] = array(
      'title' => t('More info'),
      'href' => 'node/' . $node->nid,
      'attributes' => array(
        'title' => t('More information about this post.'),
      ),
    );
  }
  return $links;
}