You are here

function redhen_contact_save in RedHen CRM 7

Saves a contact.

Parameters

RedhenContact $contact: The full contact object to save.

Return value

RedhenContact The saved contact object.

4 calls to redhen_contact_save()
RedHenContactInlineEntityFormController::entityFormSubmit in modules/redhen_contact/lib/redhen_contact.inline_entity_form.inc
Overrides EntityInlineEntityFormController::entityFormSubmit().
redhen_contact_contact_form_submit in modules/redhen_contact/includes/redhen_contact.forms.inc
Submit callback for redhen_contact_contact_form().
redhen_contact_user_registration_submit in modules/redhen_contact/redhen_contact.module
Registration form RedHen contact submit handler.
redhen_contact_user_update_submit in modules/redhen_contact/redhen_contact.module
Update form RedHen contact submit handler.

File

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

Code

function redhen_contact_save(RedhenContact $contact) {
  $contact
    ->save();
  return $contact;
}