You are here

function shib_auth_custom_email_validate in Shibboleth Authentication 6.3

E-mail validator

Parameters

form form identifier:

form_state $form_state contains all of the data of the form:

File

./shib_auth.module, line 600
This is a Shibboleth authentication module.

Code

function shib_auth_custom_email_validate($form, &$form_state) {
  if ($form_state['values']['custom_mail'] == '') {
    form_set_error('', t('You have to fill the \'E-mail\' field.'));
  }
}