protected function FeedsCommercePricelistItemProcessor::entityLoad in Commerce Pricelist 7
Loads an existing pricelist_item.
File
- commerce_pricelist_feeds/
plugins/ FeedsCommercePricelistItemProcessor.inc, line 42 - FeedsUserProcessor class.
Class
- FeedsCommercePricelistItemProcessor
- Feeds processor plugin. Create users from feed items.
Code
protected function entityLoad(FeedsSource $source, $pricelist_item_id) {
$pricelist_item = commerce_pricelist_item_load($pricelist_item_id);
if ($this->config['update_existing'] == FEEDS_UPDATE_EXISTING) {
$pricelist_item->log = 'Updated by FeedsCommercePricelistItemProcessor';
}
else {
$pricelist_item->log = 'Replaced by FeedsCommercePricelistItemProcessor';
}
return $pricelist_item;
}