function _hybridauth_window_close in HybridAuth Social Login 6.2
Same name and namespace in other branches
- 7.2 hybridauth.pages.inc \_hybridauth_window_close()
Close the popup (if used) and redirect.
3 calls to _hybridauth_window_close()
- hybridauth_window_start in ./
hybridauth.pages.inc - _hybridauth_window_auth in ./
hybridauth.pages.inc - _hybridauth_window_process_auth in ./
hybridauth.pages.inc - Handle the Drupal authentication.
File
- ./
hybridauth.pages.inc, line 68
Code
function _hybridauth_window_close($redirect = TRUE) {
global $user;
// Prevent devel module from spewing.
$GLOBALS['devel_shutdown'] = FALSE;
$destination = urldecode(drupal_substr(drupal_get_destination(), 12));
//$destination = token_replace($destination, 'user', $user, '[', ']', array('clear' => TRUE));
$destination = token_replace_multiple($destination, array(
'global' => NULL,
'user' => $user,
), '[', ']', array(
'clear' => TRUE,
));
print theme('hybridauth_close_page', $redirect, $destination);
exit;
}