You are here

function hook_simple_ldap_user_extra_attributes in Simple LDAP 7.2

Gather extra LDAP attributes to load when fetching a user LDAP record.

This hook is called when a user is being fetched from the LDAP server.

Parameters

SimpleLdapServer $server The server object about to be searched : for the user record(s) resides.

Return value

An array of extra attributes to be laoded.

1 invocation of hook_simple_ldap_user_extra_attributes()
SimpleLdapUser::__construct in simple_ldap_user/SimpleLdapUser.class.php
Constructor.

File

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

Code

function hook_simple_ldap_user_extra_attributes($server) {
  return array(
    'postalAddress',
  );
}