function commerce_pricelist_feeds_entity_insert in Commerce Pricelist 7
Implements hook_entity_insert().
File
- commerce_pricelist_feeds/
commerce_pricelist_feeds.module, line 129 - Implements the basic functionality required to create and display an entity.
Code
function commerce_pricelist_feeds_entity_insert($entity, $type) {
// Source attached to entity.
if ($type == 'commerce_pricelist_list') {
if (isset($entity->feeds) && ($importer_id = commerce_pricelist_feeds_get_importer_id())) {
commerce_pricelist_feeds_entity_update($entity, $type);
}
}
}