You are here

function feeds_get_importer_id in Feeds 7.2

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

Gets an enabled importer configuration by content type.

Parameters

string $content_type: A node type string.

Return value

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

Related topics

13 calls to feeds_get_importer_id()
FeedsNodeProcessor::existingEntityId in plugins/FeedsNodeProcessor.inc
Get nid of an existing feed item node if available.
FeedsNodeProcessor::getMappingTargets in plugins/FeedsNodeProcessor.inc
Return available mapping targets.
FeedsNodeProcessor::setTargetElement in plugins/FeedsNodeProcessor.inc
Override setTargetElement to operate on a target item that is a node.
feeds_access in ./feeds.module
Menu access callback.
feeds_delete_tab_form in ./feeds.pages.inc
Render a feeds delete form.

... See full list

File

./feeds.module, line 1106
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;
}