You are here

public function CRMCoreContactController::create in CRM Core 7

Create a basic contact object.

Overrides EntityAPIController::create

File

modules/crm_core_contact/includes/crm_core_contact.controller.inc, line 75
Controller class for contacts.

Class

CRMCoreContactController
@file Controller class for contacts.

Code

public function create(array $values = array()) {
  global $user;
  $values += array(
    'contact_id' => '',
    'vid' => '',
    'uid' => $user->uid,
    'created' => REQUEST_TIME,
    'changed' => REQUEST_TIME,
  );
  return parent::create($values);
}