You are here

function feeds_item_info_load in Feeds 7.2

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

Loads an item info object.

Example usage:

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

Related topics

4 calls to feeds_item_info_load()
FeedsProcessor::loadItemInfo in plugins/FeedsProcessor.inc
Loads existing entity information and places it on $entity->feeds_item.
FeedsSitemapParserTestCase::test in tests/feeds_parser_sitemap.test
Run tests.
feeds_get_feeds_item_property in ./feeds.module
Entity API getter callback for getting a feeds_item property on an entity.
feeds_item_info_save in ./feeds.module
Inserts or updates an item info object in the feeds_item table.

File

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