You are here

function feeds_get_importer_id in Feeds 6

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_get_importer_id()
  2. 7.2 feeds.module \feeds_get_importer_id()
  3. 7 feeds.module \feeds_get_importer_id()

Gets an enabled importer configuration by content type.

Parameters

$content_type: A node type string.

Return value

A FeedsImporter id if there is an importer for the given content type, FALSE otherwise.

Related topics

7 calls to feeds_get_importer_id()
FeedsFeedNodeProcessor::feedNodeImporter in plugins/FeedsFeedNodeProcessor.inc
Helper for retrieving the importer object for the feed nodes to produce.
feeds_access in ./feeds.module
Menu access callback.
feeds_content_extra_fields in ./feeds.module
Implements hook_content_extra_fields().
feeds_delete_tab_form in ./feeds.pages.inc
Render a feeds delete form.
feeds_form_alter in ./feeds.module
Implements hook_form_alter().

... See full list

File

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

Code

function feeds_get_importer_id($content_type) {
  $importers = array_flip(_feeds_importer_digest());
  return isset($importers[$content_type]) ? $importers[$content_type] : FALSE;
}