You are here

function feedapi_aggregator_link in FeedAPI 5

Implementation of hook_link().

File

feedapi_aggregator/feedapi_aggregator.module, line 230

Code

function feedapi_aggregator_link($type, $node = NULL, $teaser = FALSE) {
  if ($type == 'node') {
    if (count($node->feed->processors) > 0) {
      if (in_array('feedapi_aggregator', $node->feed->processors)) {
        $links['aggregator_items'] = array(
          'title' => t('News items'),
          'href' => 'aggregator/sources/' . $node->nid,
        );
      }
    }
    return $links;
  }
}