function hook_ldap_authorization_maps_alter in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_authorization/ldap_authorization.api.php \hook_ldap_authorization_maps_alter()
Allow a custom module to alter ldap_authorization mappings.
Parameters
object $user: as drupal acct object.
array $ldap_user: See ldap_authentication/README.developers.txt for structure.
LdapServer $ldap_server: The ldap server associated with this consumer type.
LdapAuthorizationConsumerConf $consumer_conf: The ldap consumer configuraion associated with this consumer type.
array $proposed_ldap_authorizations: with keys of consumer ids and values of consumers (drupal roles, og entity, etc.)
alters $proposed_ldap_authorizations by reference.
1 function implements hook_ldap_authorization_maps_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- ldap_authorization_ldap_authorization_maps_alter in ldap_authorization/
ldap_authorization.module - Implements hook_ldap_authorization_maps_alter().
1 invocation of hook_ldap_authorization_maps_alter()
- ldap_authorization_maps_alter_invoke in ldap_authorization/
ldap_authorization.module - Ldap_authorization_maps_alter_invoke invokes hook_ldap_authorization_maps_alter() in every module.
File
- ldap_authorization/
ldap_authorization.api.php, line 26 - Summary of hooks and other developer related functions.
Code
function hook_ldap_authorization_maps_alter($user, $ldap_user, $ldap_server, $consumer_conf, $proposed_ldap_authorizations, $op) {
}