function feeds_item_info_save in Feeds 7.2
Same name and namespace in other branches
- 8.2 feeds.module \feeds_item_info_save()
Inserts or updates an item info object in the feeds_item table.
Related topics
1 call to feeds_item_info_save()
- feeds_entity_update in ./
feeds.module - Implements hook_entity_update().
File
- ./
feeds.module, line 1223 - Feeds - basic API functions and hook implementations.
Code
function feeds_item_info_save($entity, $entity_id) {
if (isset($entity->feeds_item)) {
$entity->feeds_item->entity_id = $entity_id;
if (feeds_item_info_load($entity->feeds_item->entity_type, $entity_id)) {
drupal_write_record('feeds_item', $entity->feeds_item, array(
'entity_type',
'entity_id',
));
}
else {
feeds_item_info_insert($entity, $entity_id);
}
}
}