You are here

public function FeedsHTTPFetcher::unsubscribe in Feeds 7.2

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

Implement FeedsFetcher::unsubscribe() - unsubscribe from hub.

Overrides FeedsFetcher::unsubscribe

1 call to FeedsHTTPFetcher::unsubscribe()
FeedsHTTPFetcher::sourceDelete in plugins/FeedsHTTPFetcher.inc
Override sourceDelete() - unsubscribe from hub.

File

plugins/FeedsHTTPFetcher.inc, line 355

Class

FeedsHTTPFetcher
Fetches data via HTTP.

Code

public function unsubscribe(FeedsSource $source) {
  $source_config = $source
    ->getConfigFor($this);
  $this
    ->subscriber($source->feed_nid)
    ->unsubscribe($source_config['source'], url($this
    ->path($source->feed_nid), array(
    'absolute' => TRUE,
  )));
}