You are here

function redhen_contact_create in RedHen CRM 7

Create a new contact object.

Parameters

array $values: Associative array of values. At least include array('type' => $type).

Return value

RedhenContact New contact entity.

2 calls to redhen_contact_create()
redhen_contact_add_page in modules/redhen_contact/includes/redhen_contact.pages.inc
Page callback for adding a contact.
redhen_contact_form_user_register_form_alter in modules/redhen_contact/redhen_contact.module
Implements hook_form_FORM_ID_alter().
1 string reference to 'redhen_contact_create'
redhen_relation_connection_form in modules/redhen_relation/includes/redhen_relation.forms.inc
Return a form array for adding/editing a connection.

File

modules/redhen_contact/redhen_contact.module, line 1133
Module file for RedHen contacts.

Code

function redhen_contact_create(array $values = array()) {
  return entity_get_controller('redhen_contact')
    ->create($values);
}