You are here

function redhen_contact_user_update_submit in RedHen CRM 8

Same name and namespace in other branches
  1. 7 modules/redhen_contact/redhen_contact.module \redhen_contact_user_update_submit()

User update form RedHen Contact submit handler.

Updates a connected Contact on User update.

Parameters

array $form: Form array.

array $form_state: Form state array.

1 string reference to 'redhen_contact_user_update_submit'
redhen_contact_form_user_form_alter in modules/redhen_contact/redhen_contact.module
Implements hook_form_FORM_ID_alter().

File

modules/redhen_contact/redhen_contact.module, line 457
Contains redhen_contact.module..

Code

function redhen_contact_user_update_submit($form, &$form_state) {

  // Load Contact
  $contact = $form_state
    ->get('redhen_contact');

  // Save changes to Contact associated with User being updated.
  $contact
    ->save();
}