You are here

function hook_simple_ldap_user_to_ldap_alter in Simple LDAP 7.2

Same name and namespace in other branches
  1. 7 simple_ldap_user/simple_ldap_user.api.php \hook_simple_ldap_user_to_ldap_alter()

Alter user data before saving to LDAP.

This hook is called when simple_ldap_user is doing an account synchronization from Drupal to LDAP, immediately before SimpleLdapUser::save() is called.

Parameters

SimpleLdapUser $ldap_user: The SimpleLdapUser object to be saved.

StdClass $drupal_user: The Drupal user object that matches the SimpleLdapUser object.

1 invocation of hook_simple_ldap_user_to_ldap_alter()
simple_ldap_user_sync_user_to_ldap in simple_ldap_user/simple_ldap_user.module
Synchronizes Drupal user properties to LDAP.

File

simple_ldap_user/simple_ldap_user.api.php, line 91
Describe hooks provided by the Simple LDAP User module.

Code

function hook_simple_ldap_user_to_ldap_alter($ldap_user, $drupal_user) {
}