Révision 5136ce55
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/ldap/ldap_user/LdapUserConf.class.php | ||
---|---|---|
606 | 606 |
if (!$ldap_user_prov_entry_exists) { |
607 | 607 |
$user_entity->ldap_user_prov_entries['und'][] = array( |
608 | 608 |
'value' => $ldap_user_prov_entry, |
609 |
'format' => NULL, |
|
610 |
'save_value' => $ldap_user_prov_entry, |
|
611 | 609 |
); |
612 |
$edit = array( |
|
613 |
'ldap_user_prov_entries' => $user_entity->ldap_user_prov_entries, |
|
614 |
); |
|
615 |
$account = user_load($account->uid); |
|
616 |
$account = user_save($account, $edit); |
|
610 |
|
|
611 |
// Save the field without calling user_save() |
|
612 |
field_attach_presave('user', $user_entity); |
|
613 |
field_attach_update('user', $user_entity); |
|
617 | 614 |
} |
618 | 615 |
|
619 | 616 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules