function ldap_authentication_admin_form_validate in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_authentication/ldap_authentication.admin.inc \ldap_authentication_admin_form_validate()
- 7.2 ldap_authentication/ldap_authentication.admin.inc \ldap_authentication_admin_form_validate()
validate handler for the ldap_authentication_admin_form
File
- ldap_authentication/
ldap_authentication.admin.inc, line 27 - Administrative page callbacks for the ldap_authentication module.
Code
function ldap_authentication_admin_form_validate($form, &$form_state) {
ldap_server_module_load_include('php', 'ldap_authentication', 'LdapAuthenticationConfAdmin.class');
$auth_conf = new LdapAuthenticationConfAdmin();
$errors = $auth_conf
->drupalFormValidate($form_state['values']);
foreach ($errors as $error_name => $error_text) {
form_set_error($error_name, t($error_text));
}
}