function ldapgroups_ldap_convert_to_local_alter in LDAP integration 6
Implementation of hook_ldap_convert_to_local_alter().
Remove ldap_drupal_roles property when user is convert back to a local user.
Parameters
Array $data:
User $account:
File
- ./
ldapgroups.module, line 235 - ldapgroups integrates ldap groups with drupal roles.
Code
function ldapgroups_ldap_convert_to_local_alter(&$data, $account) {
$data['ldap_drupal_roles'] = NULL;
}