public function FeedsHTTPFetcher::sourceDelete in Feeds 7.2
Same name and namespace in other branches
- 6 plugins/FeedsHTTPFetcher.inc \FeedsHTTPFetcher::sourceDelete()
- 7 plugins/FeedsHTTPFetcher.inc \FeedsHTTPFetcher::sourceDelete()
Override sourceDelete() - unsubscribe from hub.
Overrides FeedsPlugin::sourceDelete
File
- plugins/
FeedsHTTPFetcher.inc, line 325
Class
- FeedsHTTPFetcher
- Fetches data via HTTP.
Code
public function sourceDelete(FeedsSource $source) {
if ($this->config['use_pubsubhubbub']) {
// If we're in a feed node, queue the unsubscribe,
// else process immediately.
if ($source->feed_nid) {
$job = array(
'type' => $source->id,
'id' => $source->feed_nid,
'period' => 0,
'periodic' => FALSE,
);
JobScheduler::get('feeds_push_unsubscribe')
->set($job);
}
else {
$this
->unsubscribe($source);
}
}
}