You are here

function ldap_authorization_get_consumer_conf in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_authorization/ldap_authorization.module \ldap_authorization_get_consumer_conf()
2 calls to ldap_authorization_get_consumer_conf()
LdapAuthorizationBasicTests::testUIForms in ldap_authorization/tests/BasicTests.test
ldap_authorization_ldap_attributes_needed_alter in ldap_authorization/ldap_authorization.module
Implements hook_ldap_attributes_needed_alter().

File

ldap_authorization/ldap_authorization.module, line 337
Ldap authorization module.

Code

function ldap_authorization_get_consumer_conf($consumer_type, $type = 'default', $new = NULL) {
  $consumer_object = ldap_authorization_get_consumer_object($consumer_type);
  if ($type == 'admin') {
    ldap_servers_module_load_include('php', 'ldap_authorization', 'LdapAuthorizationConsumerConfAdmin.class');
    $consumer_conf = new LdapAuthorizationConsumerConfAdmin($consumer_object, $new);
  }
  else {
    ldap_servers_module_load_include('php', 'ldap_authorization', 'LdapAuthorizationConsumerConf.class');
    $consumer_conf = new LdapAuthorizationConsumerConf($consumer_object, $new);
  }
  return $consumer_conf;
}