You are here

function feeds_fetcher_callback in Feeds 7

Same name and namespace in other branches
  1. 8.2 feeds.pages.inc \feeds_fetcher_callback()
  2. 6 feeds.pages.inc \feeds_fetcher_callback()
  3. 7.2 feeds.pages.inc \feeds_fetcher_callback()

Handle a fetcher callback.

1 string reference to 'feeds_fetcher_callback'
FeedsFetcher::menuItem in plugins/FeedsFetcher.inc
Menu item definition for fetchers of this class. Note how the path component in the item definition matches the return value of FeedsFetcher::path();

File

./feeds.pages.inc, line 145
Menu callbacks, form callbacks and helpers.

Code

function feeds_fetcher_callback($importer, $feed_nid = 0) {
  if ($importer instanceof FeedsImporter) {
    return $importer->fetcher
      ->request($feed_nid);
  }
  drupal_access_denied();
}