You are here

function feeds_source in Feeds 6

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

5 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_nodeapi in ./feeds.module
Implementation of hook_nodeapi().
feeds_source_import in ./feeds.module
Scheduler callback for importing from a source.
5 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.
feeds_update_6015 in ./feeds.install
Change batch field from text to blob.

File

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

Code

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