function ldapauth_server_load_by_name in LDAP integration 6
Retrieve server settings by human name.
Parameters
String $name The description name of the server.:
Return value
Object or FALSE if not found.
1 call to ldapauth_server_load_by_name()
- ldapauth_admin_import_form_validate in ./
ldapauth.admin.inc - Validate a server settings import.
File
- includes/
ldap.core.inc, line 48 - The core functions that ldapauth supplies for submodules. Will be included by default by ldapauth.
Code
function ldapauth_server_load_by_name($name) {
$server = db_fetch_object(db_query("SELECT * FROM {ldapauth} WHERE name = '%s'", $name));
if (!$server) {
return FALSE;
}
return $server;
}