You are here

function feedapi_link in FeedAPI 6

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

Implementation of hook_link().

File

./feedapi.module, line 235
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;
    }
  }
}