You are here

public function FeedsHTTPFetcher::importPeriod in Feeds 6

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

Implement FeedsFetcher::importPeriod().

Overrides FeedsFetcher::importPeriod

File

plugins/FeedsHTTPFetcher.inc, line 203

Class

FeedsHTTPFetcher
Fetches data via HTTP.

Code

public function importPeriod(FeedsSource $source) {
  if ($this
    ->subscriber($source->feed_nid)
    ->subscribed()) {
    return 259200;

    // Delay for three days if there is a successful subscription.
  }
}