You are here

public function FeedsHTTPFetcher::subscribe in Feeds 7

Same name and namespace in other branches
  1. 6 plugins/FeedsHTTPFetcher.inc \FeedsHTTPFetcher::subscribe()
  2. 7.2 plugins/FeedsHTTPFetcher.inc \FeedsHTTPFetcher::subscribe()

Implement FeedsFetcher::subscribe() - subscribe to hub.

Overrides FeedsFetcher::subscribe

1 call to FeedsHTTPFetcher::subscribe()
FeedsHTTPFetcher::sourceSave in plugins/FeedsHTTPFetcher.inc
Override sourceSave() - subscribe to hub.

File

plugins/FeedsHTTPFetcher.inc, line 181

Class

FeedsHTTPFetcher
Fetches data via HTTP.

Code

public function subscribe(FeedsSource $source) {
  $source_config = $source
    ->getConfigFor($this);
  $this
    ->subscriber($source->feed_nid)
    ->subscribe($source_config['source'], url($this
    ->path($source->feed_nid), array(
    'absolute' => TRUE,
  )), valid_url($this->config['designated_hub']) ? $this->config['designated_hub'] : '');
}