function feeds_source in Feeds 7.2
Same name and namespace in other branches
- 8.2 feeds.module \feeds_source()
- 6 feeds.module \feeds_source()
- 7 feeds.module \feeds_source()
Gets an instance of a source object.
Parameters
string $importer_id: A FeedsImporter id.
int $feed_nid: The node id of a feed node if the source is attached to a feed node.
Return value
FeedsSource A FeedsSource object or an object of a class defined by the Drupal variable 'source_class'.
Related topics
17 calls to feeds_source()
- drush_feeds_import in ./
feeds.drush.inc - Imports a given importer/source.
- FeedsHTTPFetcher::request in plugins/
FeedsHTTPFetcher.inc - Implements FeedsFetcher::request().
- FeedsSourceTest::testProgrammaticImport in tests/
FeedsSourceTest.test - Tests if two sources can be imported in the same request.
- feeds_action_import_feed in ./
feeds.rules.inc - Rules action callback for "feeds_import_feed" action.
- feeds_delete_tab_form in ./
feeds.pages.inc - Render a feeds delete form.
9 string references to 'feeds_source'
- FeedsNodeProcessor::existingEntityId in plugins/
FeedsNodeProcessor.inc - Get nid of an existing feed item node if available.
- FeedsNodeProcessor::setTargetElement in plugins/
FeedsNodeProcessor.inc - Override setTargetElement to operate on a target item that is a node.
- FeedsSource::save in includes/
FeedsSource.inc - Save configuration.
- feeds_news_feeds_importer_default in feeds_news/
feeds_news.feeds_importer_default.inc - Implements hook_feeds_importer_default().
- feeds_rules_event_info in ./
feeds.rules.inc - Implements hook_rules_event_info().
File
- ./
feeds.module, line 1271 - Feeds - basic API functions and hook implementations.
Code
function feeds_source($importer_id, $feed_nid = 0) {
return FeedsSource::instance($importer_id, $feed_nid);
}