You are here

function gauth_login_settings_validate in Google Auth 7.2

Same name and namespace in other branches
  1. 7 gauth_login/gauth_login.admin.inc \gauth_login_settings_validate()

File

gauth_login/gauth_login.admin.inc, line 79
Administration pages for GAuth Login settings.

Code

function gauth_login_settings_validate($form, $form_state) {
  if (!$form_state['values']['gauth_login_create_user'] && trim($form_state['values']['gauth_login_create_user_not_allowed_message']) == '') {
    form_set_error('gauth_login_create_user_not_allowed_message', t('Message to be shown is a required field'));
  }
}