You are here

function simple_ldap_user_entity_info_alter in Simple LDAP 7.2

Same name and namespace in other branches
  1. 7 simple_ldap_user/simple_ldap_user.module \simple_ldap_user_entity_info_alter()

Implements hook_entity_info_alter().

Specifies that SimpleLdapuserController should be used to load users instead of the default controller.

File

simple_ldap_user/simple_ldap_user.module, line 103
Main simple_ldap_user module file.

Code

function simple_ldap_user_entity_info_alter(&$entity_info) {
  if (isset($entity_info['user'])) {

    // Use the SimpleLdapUserController class to manage users.
    $entity_info['user']['controller class'] = 'SimpleLdapUserController';
  }
}