You are here

function feeds_push_unsubscribe in Feeds 8.2

Same name and namespace in other branches
  1. 7.2 feeds.module \feeds_push_unsubscribe()

Scheduler callback for unsubscribing from PuSH hubs.

Related topics

2 string references to 'feeds_push_unsubscribe'
feeds_cron_job_scheduler_info in ./feeds.module
Implements hook_cron_job_scheduler_info().
feeds_queue_info in ./feeds.module
Implements hook_queue_info().

File

./feeds.module, line 185
Feeds - basic API functions and hook implementations.

Code

function feeds_push_unsubscribe($job) {
  $source = feeds_source($job['type'], $job['id']);
  $fetcher = feeds_plugin('\\Drupal\\feeds\\Plugin\\feeds\\fetcher\\FeedsHTTPFetcher', $source->importer->id);
  $fetcher
    ->unsubscribe($source);
}