You are here

function commerce_pricelist_list_new in Commerce Pricelist 7

Returns an initialized pricelist list object.

Return value

A pricelist list object with all default fields initialized.

2 calls to commerce_pricelist_list_new()
CommercePricelistTestCase::createDummyPricelist in tests/commerce_pricelist.test
Create a pricelist for testing.
commerce_pricelist_list_add in includes/commerce_pricelist.admin.inc
Provides a wrapper on the edit form to add a new entity.

File

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

Code

function commerce_pricelist_list_new() {
  return entity_create('commerce_pricelist_list', array());
}