function feeds_get_importer_id in Feeds 8.2
Same name and namespace in other branches
- 6 feeds.module \feeds_get_importer_id()
- 7.2 feeds.module \feeds_get_importer_id()
- 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
12 calls to feeds_get_importer_id()
- FeedsNodeProcessor::existingEntityId in lib/
Drupal/ feeds/ Plugin/ feeds/ processor/ FeedsNodeProcessor.php - Get nid of an existing feed item node if available.
- FeedsNodeProcessor::getMappingTargets in lib/
Drupal/ feeds/ Plugin/ feeds/ processor/ FeedsNodeProcessor.php - Return available mapping targets.
- FeedsNodeProcessor::setTargetElement in lib/
Drupal/ feeds/ Plugin/ feeds/ processor/ FeedsNodeProcessor.php - 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.
File
- ./
feeds.module, line 721 - 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;
}