You are here

function commerce_pricelist_list_save in Commerce Pricelist 7

We save the entity by calling the controller.

2 calls to commerce_pricelist_list_save()
CommercePricelistTestCase::createDummyPricelist in tests/commerce_pricelist.test
Create a pricelist for testing.
commerce_pricelist_list_form_submit in includes/commerce_pricelist.admin.inc
Form submit handler: Submits basic_add_form information.

File

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

Code

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