function shib_auth_cancel_custom in Shibboleth Authentication 7.4
Same name and namespace in other branches
- 6.4 shib_auth.module \shib_auth_cancel_custom()
Redirects the user when Cancel button is pressed.
Cancel button is pressed, redirect user to shib logout, and then to the page he came from / loginurl.
1 call to shib_auth_cancel_custom()
- shib_auth_custom_form in ./
shib_auth.module - Displays custom form if either customization or consent options are enabled.
File
- ./
shib_auth.module, line 592 - Drupal Shibboleth authentication module.
Code
function shib_auth_cancel_custom() {
$logouthandler = shib_auth_get_redirect_base(shib_auth_config('full_logout_url'));
if (isset($_SESSION['shib_auth_custom_form_url'])) {
$redirect_url = url($_SESSION['shib_auth_custom_form_url'], array(
'absolute' => TRUE,
));
unset($_SESSION['shib_auth_custom_form_url']);
shib_auth_redirect($logouthandler, $redirect_url);
}
}