Commit cc9f4829 authored by Igor Biki's avatar Igor Biki
Browse files

Merge branch 'feature/ISTWCMS-5059-lkmorlan-deprecate-uwldap' into '7.x-2.x'

ISTWCMS-5059: Replace uw_ldap_pub_lookup() with uw_ldap_lookup()

See merge request !21
parents 4b80c199 8643db37
......@@ -40,7 +40,7 @@ function uw_ct_contact_form_contact_node_form_alter(&$form, &$form_state, $form_
if (!empty($form_state['values']['field_contact_watiam_id'][$language][0]['value'])) {
$uid = $form_state['values']['field_contact_watiam_id'][$language][0]['value'];
// Get LDAP entry data as array.
$info = uw_ldap_pub_lookup($uid);
$info = uw_ldap_lookup($uid);
if ($info) {
// Have to unset the $form_state value for this field before we are allowed to change it (even if empty).
if (isset($info["displayname"][0])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment