function ldap_servers_delete_globals in LDAP Single Sign On 7.2
Delete globals.
Parameters
string $global_type: _SERVER, _ENV, _COOKIE, _GET, _POST, _REQUEST.
string $key: Such as 'SERVER_ADDR', 'SERVER_PROTOCOL', etc.
bool $only_mock_values: Don't get actual values when mock values don't exist.
1 call to ldap_servers_delete_globals()
- ldap_sso_user_login_sso in ./
ldap_sso.module - A proxy function for the actual authentication routine.
File
- ./
ldap_sso.module, line 427 - This module injects itself into Drupal's Authentication stack.
Code
function ldap_servers_delete_globals($global_type, $key, $only_mock_values = FALSE) {
$simpletest_globals = variable_get('ldap_simpletest_globals', array());
$simpletest = variable_get('ldap_simpletest', FALSE);
if ($simpletest && isset($simpletest_globals[$global_type][$key])) {
unset($simpletest_globals[$global_type][$key]);
variable_set('ldap_simpletest_globals', $simpletest_globals);
}
elseif (!$only_mock_values && isset($GLOBALS[$global_type][$key])) {
unset($GLOBALS[$global_type][$key]);
}
}