function ldap_profile_admin_form_validate in Lightweight Directory Access Protocol (LDAP) 7
validate handler for the ldap_profile_admin_form
File
- ldap_profile/
ldap_profile.admin.inc, line 25 - Administrative page callbacks for the ldap_profile module.
Code
function ldap_profile_admin_form_validate($form, &$form_state) {
require_once 'LdapProfileConfAdmin.class.php';
$auth_conf = new LdapProfileConfAdmin();
$errors = $auth_conf
->drupalFormValidate($form_state['values']);
foreach ($errors as $error_name => $error_text) {
form_set_error($error_name, t(c($error_text)));
}
}