function 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 90

Code

function openid_redirect($url, $message) {
    global $language;
    $output = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n";
    $output .= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . $language->language . '" lang="' . $language->language . '">' . "\n";
    $output .= "<head>\n";
    $output .= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";
    $output .= "<title>" . t('OpenID redirect') . "</title>\n";
    $output .= "</head>\n";
    $output .= "<body>\n";
    $elements = drupal_get_form('openid_redirect_form', $url, $message);
    $output .= drupal_render($elements);
    $output .= '<script type="text/javascript">document.getElementById("openid-redirect-form").submit();</script>' . "\n";
    $output .= "</body>\n";
    $output .= "</html>\n";
    print $output;
    drupal_exit();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.