function feeds_source in Feeds 8.2
Same name and namespace in other branches
- 6 feeds.module \feeds_source()
- 7.2 feeds.module \feeds_source()
- 7 feeds.module \feeds_source()
Gets an instance of a source object.
Parameters
$importer_id: A FeedsImporter id.
$feed_nid: The node id of a feed node if the source is attached to a feed node.
Return value
A FeedsSource object or an object of a class defiend by the Drupal variable 'source_class'.
Related topics
13 calls to feeds_source()
- feeds_delete_tab_form in ./
feeds.pages.inc - Render a feeds delete form.
- feeds_form_node_form_alter in ./
feeds.module - Implements hook_form_BASE_FORM_ID_alter().
- feeds_import_form in ./
feeds.pages.inc - Render a feeds import form on import/[config] pages.
- feeds_import_form_submit in ./
feeds.pages.inc - Submit handler for feeds_import_form().
- feeds_import_tab_form in ./
feeds.pages.inc - Render a feeds import form on node/id/import pages.
9 string references to 'feeds_source'
- FeedsNodeProcessor::existingEntityId in lib/
Drupal/ feeds/ Plugin/ feeds/ processor/ FeedsNodeProcessor.php - Get nid of an existing feed item node if available.
- FeedsNodeProcessor::setTargetElement in lib/
Drupal/ feeds/ Plugin/ feeds/ processor/ FeedsNodeProcessor.php - Override setTargetElement to operate on a target item that is a node.
- FeedsSource::save in lib/
Drupal/ feeds/ FeedsSource.php - Save configuration.
- feeds_news_feeds_importer_default in feeds_news/
feeds_news.feeds_importer_default.inc - Implementation of hook_feeds_importer_default().
- feeds_rules_event_info in ./
feeds.rules.inc - Implements hook_rules_event_info().
File
- ./
feeds.module, line 878 - Feeds - basic API functions and hook implementations.
Code
function feeds_source($importer_id, $feed_nid = 0) {
return FeedsSource::instance($importer_id, $feed_nid);
}