You are here

function commerce_pricelist_item_save in Commerce Pricelist 7

We save the entity by calling the controller.

3 calls to commerce_pricelist_item_save()
CommercePricelistTestCase::createDummyPricelistItem in tests/commerce_pricelist.test
Create a pricelist item for testing.
commerce_pricelist_item_form_submit in includes/commerce_pricelist.admin.inc
Form submit handler: Submits basic_add_form information.
FeedsCommercePricelistItemProcessor::entitySave in commerce_pricelist_feeds/plugins/FeedsCommercePricelistItemProcessor.inc
Save a user account.

File

./commerce_pricelist.module, line 701
Implements the basic functionality required for price lists

Code

function commerce_pricelist_item_save(&$entity) {
  $result = entity_save('commerce_pricelist_item', $entity);
  cache_clear_all('commerce_pricelist', 'cache', TRUE);
  return $result;
}