You are here

function crm_core_contact_save in CRM Core 7

Save a contact.

Parameters

object $contact: The contact object to be saved

Return value

mixed FALSE if the save fails and SAVED_NEW or SAVED_UPDATED based on the operation performed, exception in case of error.

6 calls to crm_core_contact_save()
CRMFeedsContactProcessor::entitySave in modules/crm_core_contact/includes/CRMFeedsContactProcessor.inc
Save a contact.
crm_core_contact_join_into_household_action in modules/crm_core_contact/crm_core_contact.module
Creates household with specified members.
crm_core_contact_ui_form_submit in modules/crm_core_contact_ui/crm_core_contact_ui.pages.inc
Submit callback for crm_core_contact_ui_form().
crm_core_user_sync_sync in modules/crm_core_user_sync/crm_core_user_sync.module
Synchronizes user amd contact.
MigrateDestinationCRMCoreContact::import in modules/crm_core_contact/includes/crm_core_contact.migrate.inc
Import a single contact.

... See full list

File

modules/crm_core_contact/crm_core_contact.module, line 791
Provides default CRM Core Contact entities and the ability to create more.

Code

function crm_core_contact_save($contact) {
  return entity_get_controller('crm_core_contact')
    ->save($contact);
}