function feeds_fetcher_callback in Feeds 7.2
Same name and namespace in other branches
- 8.2 feeds.pages.inc \feeds_fetcher_callback()
- 6 feeds.pages.inc \feeds_fetcher_callback()
- 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 347 - 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();
}