You are here

public function CommerceCustomerProfileEntityController::create in Commerce Core 7

Create a default customer profile.

Parameters

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

Return value

A customer profile object with all default fields initialized.

Overrides DrupalCommerceEntityController::create

File

modules/customer/includes/commerce_customer_profile.controller.inc, line 23
The controller for the customer profile entity containing the CRUD operations.

Class

CommerceCustomerProfileEntityController
The controller class for customer profiles contains methods for the profile CRUD operations. The load method is inherited from the default controller.

Code

public function create(array $values = array()) {
  $values += array(
    'profile_id' => NULL,
    'revision_id' => NULL,
    'type' => '',
    'uid' => '',
    'status' => 1,
    'created' => '',
    'changed' => '',
  );
  return parent::create($values);
}