You are here

function feeds_item_info_load in Feeds 8.2

Same name and namespace in other branches
  1. 7.2 feeds.module \feeds_item_info_load()

Loads an item info object.

Example usage:

$info = feeds_item_info_load('node', $node->nid);

Related topics

3 calls to feeds_item_info_load()
FeedsProcessor::loadItemInfo in lib/Drupal/feeds/Plugin/FeedsProcessor.php
Loads existing entity information and places it on $entity->feeds_item.
FeedsSitemapParserTest::test in lib/Drupal/feeds/Tests/FeedsSitemapParserTest.php
Run tests.
feeds_item_info_save in ./feeds.module
Inserts or updates an item info object in the feeds_item table.

File

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

Code

function feeds_item_info_load($entity_type, $entity_id) {
  return db_select('feeds_item')
    ->fields('feeds_item')
    ->condition('entity_type', $entity_type)
    ->condition('entity_id', $entity_id)
    ->execute()
    ->fetchObject();
}