function openid_redirect in Drupal 6
Same name and namespace in other branches
- 7 modules/openid/openid.inc \openid_redirect()
Creates a js auto-submit redirect for (for the 2.x protocol)
1 call to openid_redirect()
- openid_begin in modules/
openid/ openid.module - The initial step of OpenID authentication responsible for the following:
File
- modules/
openid/ openid.inc, line 42 - OpenID utility functions.
Code
function openid_redirect($url, $message) {
$output = '<html><head><title>' . t('OpenID redirect') . "</title></head>\n<body>";
$output .= drupal_get_form('openid_redirect_form', $url, $message);
$output .= '<script type="text/javascript">document.getElementById("openid-redirect-form").submit();</script>';
$output .= "</body></html>\n";
print $output;
exit;
}