You are here

function feeds_source in Feeds 7

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_source()
  2. 6 feeds.module \feeds_source()
  3. 7.2 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

6 calls to feeds_source()
feeds_form_alter in ./feeds.module
Implements hook_form_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_node_update in ./feeds.module
Implements hook_node_update().
feeds_node_validate in ./feeds.module
Implements hook_node_validate().

... See full list

4 string references to 'feeds_source'
FeedsSource::save in includes/FeedsSource.inc
Save configuration.
feeds_update_6003 in ./feeds.install
Add primary keys to feeds_importer and feeds_source.
feeds_update_6004 in ./feeds.install
Add source field to feeds_source, make fields part of PKs not null.
feeds_update_6008 in ./feeds.install
Add batch field to feeds_source table, adjust feeds_schedule table.

File

./feeds.module, line 738
Feeds - basic API functions and hook implementations.

Code

function feeds_source($importer_id, $feed_nid = 0) {
  return FeedsSource::instance($importer_id, $feed_nid);
}