function ldap_servers_set_globals in LDAP Single Sign On 7.2
Set globals.
Parameters
string $global_type: _SERVER, _ENV, _COOKIE, _GET, _POST, _REQUEST.
string $key: Such as 'SERVER_ADDR', 'SERVER_PROTOCOL', etc.
string $value: The value to be set.
3 calls to ldap_servers_set_globals()
- ldap_sso_boot in ./
ldap_sso.module - Implements hook_boot().
- ldap_sso_user_login_sso in ./
ldap_sso.module - A proxy function for the actual authentication routine.
- ldap_sso_user_logout in ./
ldap_sso.module - Implements hook_user_logout().
File
- ./
ldap_sso.module, line 404 - This module injects itself into Drupal's Authentication stack.
Code
function ldap_servers_set_globals($global_type, $key, $value) {
$simpletest_globals = variable_get('ldap_simpletest_globals', array());
$simpletest = variable_get('ldap_simpletest', FALSE);
if ($simpletest) {
$simpletest_globals[$global_type][$key] = $value;
variable_set('ldap_simpletest_globals', $simpletest_globals);
}
else {
$GLOBALS[$global_type][$key] = $value;
}
}