You are here

function feedapi_link in FeedAPI 5

Same name and namespace in other branches
  1. 6 feedapi.module \feedapi_link()

Implementation of hook_link().

File

./feedapi.module, line 198
Handle the submodules (for feed and item processing) Provide a basic management of feeds

Code

function feedapi_link($type, $node = NULL) {
  if ($type == 'node' && isset($node->feed)) {
    if (strlen($node->feed->link) > 0) {
      $links['feedapi_original'] = array(
        'title' => t('Link to site'),
        'href' => $node->feed->link,
      );
      return $links;
    }
  }
}