You are here

public function CommercePricelistItemController::create in Commerce Pricelist 7

Implements EntityAPIControllerInterface.

Overrides EntityAPIController::create

File

includes/commerce_pricelist_item.controller.inc, line 17
Contains CommercePricelistItemController

Class

CommercePricelistItemController
Handles CRUD for Pricelist item.

Code

public function create(array $values = array()) {
  $values += array(
    'pricelist_id' => NULL,
    'sku' => NULL,
    'item_id' => 0,
    'valid_to' => COMMERCE_PRICELIST_UNIX_TIME_APOCALYPSE,
    'valid_from' => 0,
    'quantity' => 0,
  );
  return parent::create($values);
}