You are here

function sendinblue_send_email_form_validate in SendinBlue 7.2

Same name and namespace in other branches
  1. 7 includes/sendinblue_home.admin.inc \sendinblue_send_email_form_validate()

Validation Handler of Form to send email of Home page.

File

includes/sendinblue_home.admin.inc, line 162
Sendinblue module home admin settings.

Code

function sendinblue_send_email_form_validate($form, &$form_state) {
  $send_email = $form_state['values']['sendinblue_to_email'];
  if (!empty($send_email) && !valid_email_address($send_email)) {
    form_set_error('sendinblue_to_email', t('The email address is invalid.'));
    return;
  }
}