function vote_storylink_nodeapi in Vote Up/Down 5
Implementation of hook_nodeapi().
File
- ./
vote_storylink.module, line 113
Code
function vote_storylink_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
switch ($op) {
case 'rss item':
if ($node->type == 'storylink' && variable_get('feed_item_length', 'teaser') == 'teaser') {
$node->teaser .= '<p><a href="' . check_url($node->vote_storylink_url) . '" title="' . t('Go to the original news source.') . '">' . t('Original news source') . '</a></p>';
}
elseif ($node->type == 'storylink' && variable_get('feed_item_length', 'teaser') == 'fulltext') {
$node->body .= '<p><a href="' . check_url($node->vote_storylink_url) . '" title="' . t('Go to the original news source.') . '">' . t('Original news source') . '</a></p>';
}
break;
}
}