You are here

function feeds_get_importer_id in Feeds 7

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.2 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

9 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_delete_tab_form in ./feeds.pages.inc
Render a feeds delete form.
feeds_form_alter in ./feeds.module
Implements hook_form_alter().
feeds_import_tab_form in ./feeds.pages.inc
Render a feeds import form on node/id/import pages.

... See full list

File

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