You are here

function feeds_fetcher_callback in Feeds 6

Same name and namespace in other branches
  1. 8.2 feeds.pages.inc \feeds_fetcher_callback()
  2. 7.2 feeds.pages.inc \feeds_fetcher_callback()
  3. 7 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 151
Menu callbacks, form callbacks and helpers.

Code

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

      // Do nothing.
    }
  }
  drupal_access_denied();
}