You are here

function _oauth2_proxy_logout in OAuth2 Login 7.2

Same name and namespace in other branches
  1. 7 oauth2_login.module \_oauth2_proxy_logout()

Function for: oauth2/proxy/logout.

1 call to _oauth2_proxy_logout()
oauth2_proxy_callback in ./oauth2_login.module
Callback function for the menu oauth2/proxy. The parameter $action can be: login|logout|refresh

File

./oauth2_login.module, line 172
Provides OAuth2 Login functionality.

Code

function _oauth2_proxy_logout() {
  print "<script>window.close();</script>";
  if (user_is_anonymous()) {
    drupal_exit();
  }
  else {
    module_load_include('pages.inc', 'user');
    user_logout();
  }
}