You are here

function feeds_item_info_insert in Feeds 8.2

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

Inserts an item info object into the feeds_item table.

Related topics

2 calls to feeds_item_info_insert()
feeds_entity_insert in ./feeds.module
Implements hook_entity_insert().
feeds_item_info_save in ./feeds.module
Inserts or updates an item info object in the feeds_item table.

File

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

Code

function feeds_item_info_insert($entity, $entity_id) {
  if (isset($entity->feeds_item)) {
    $entity->feeds_item->entity_id = $entity_id;
    drupal_write_record('feeds_item', $entity->feeds_item);
  }
}