Révision 59ae487e
Ajouté par Assos Assos il y a presque 7 ans
drupal7/sites/all/modules/ldap/ldap_authentication/ldap_authentication.api.php | ||
---|---|---|
20 | 20 |
* |
21 | 21 |
* @return boolean &$hook_result passed by reference |
22 | 22 |
*/ |
23 |
|
|
24 | 23 |
function hook_ldap_authentication_allowuser_results_alter($ldap_user, $name, &$hook_result) { |
25 | 24 |
|
26 | 25 |
if ($hook_result === FALSE) { // other module has denied user, should not override |
... | ... | |
34 | 33 |
|
35 | 34 |
} |
36 | 35 |
|
37 |
|
|
36 |
/** |
|
37 |
* Allow a custom module to alter $ldap_user before validating user login. |
|
38 |
* |
|
39 |
* @param array $ldap_user |
|
40 |
* See README.developers.txt for structure |
|
41 |
*/ |
|
42 |
function hook_ldap_entry_alter(&$ldap_user) { |
|
43 |
$ldap_user['mail'] = 'newmail@example.com'; |
|
44 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules