function ldap_profile_get_valid_conf in Lightweight Directory Access Protocol (LDAP) 7
Provides a valid LdapProfile configuration object.
2 calls to ldap_profile_get_valid_conf()
- ldap_profile_get_derived_mapping in ldap_profile/
ldap_profile.module - Provides an array of all the current derived profile field mappings with ldap fields
- ldap_profile_get_mapping in ldap_profile/
ldap_profile.module - Provides an array of all the current profile fields mappings with ldap fields
File
- ldap_profile/
ldap_profile.module, line 233 - This module provides the LDAP package the ability populate drupal profile fields with ldap entry data such as last name, first name, etc.
Code
function ldap_profile_get_valid_conf() {
static $ldap_profile_conf;
if (is_object($ldap_profile_conf)) {
return $ldap_profile_conf;
}
require_once 'LdapProfileConf.class.php';
$ldap_profile_conf = new LdapProfileConf();
return $ldap_profile_conf->inDatabase ? $ldap_profile_conf : FALSE;
}