public function FeedsHTTPFetcher::subscribe in Feeds 7.2
Same name and namespace in other branches
- 6 plugins/FeedsHTTPFetcher.inc \FeedsHTTPFetcher::subscribe()
- 7 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 347
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'] : '');
}