function feedapi_node_views_link in FeedAPI 5
Implementation of hook_link(). Provide link for feedapi_node processor's feed to get instant access to default view
File
- feedapi_node_views/
feedapi_node_views.module, line 248
Code
function feedapi_node_views_link($type, $node = NULL, $teaser = FALSE) {
if ($type == 'node') {
if (count($node->feed->processors) > 0) {
if (in_array('feedapi_node', $node->feed->processors)) {
$links['view_items'] = array(
'title' => t('Feed items'),
'href' => 'feed-item/' . $node->nid,
);
}
}
return $links;
}
}