function _logout_from_oauth2_server in OAuth2 Login 7.2
Same name and namespace in other branches
- 7 oauth2_login.module \_logout_from_oauth2_server()
Logout from the oauth2 server as well.
1 string reference to '_logout_from_oauth2_server'
- oauth2_login_user_logout in ./
oauth2_login.module - Implements hook_user_logout().
File
- ./
oauth2_login.module, line 325 - Provides OAuth2 Login functionality.
Code
function _logout_from_oauth2_server($token) {
$oauth2_server = variable_get('oauth2_login_oauth2_server', '');
drupal_goto($oauth2_server . '/user/logout', [
'query' => [
'token' => $token,
],
]);
}