You are here

function redhen_contact_user_update_validate in RedHen CRM 8

User edit form RedHen Contact validation handler.

Parameters

array $form:

\Drupal\Core\Form\FormStateInterface $form_state:

1 string reference to 'redhen_contact_user_update_validate'
_redhen_contact_user_embed_contact_form in modules/redhen_contact/redhen_contact.module
Helper function to embed a contact form on a user form.

File

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

Code

function redhen_contact_user_update_validate($form, &$form_state) {

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

  // Validate submitted field values and update Contact stored in form_state
  // with field values from the submitted form.
  _redhen_contact_user_submission_validate($form, $form_state, $contact);
}