You are here

public function CommerceGCTransactionEntityController::create in Commerce GC 7

Create a default transaction.

Parameters

array $values: An array of values to set, keyed by property name.

Return value

A product object with all default fields initialized.

Overrides DrupalCommerceEntityController::create

File

includes/commerce_gc.controller.inc, line 28
Giftcard transaction controller class.

Class

CommerceGCTransactionEntityController
@file Giftcard transaction controller class.

Code

public function create(array $values = array()) {
  $values += array(
    'coupon_id' => '',
    'transaction_id' => '',
    'amount' => 0,
    'date' => '',
    'status' => 'completed',
  );
  return parent::create($values);
}