You are here

function openid_redirect_form in Drupal 6

Same name and namespace in other branches
  1. 7 modules/openid/openid.inc \openid_redirect_form()
1 string reference to 'openid_redirect_form'
openid_redirect in modules/openid/openid.inc
Creates a js auto-submit redirect for (for the 2.x protocol)

File

modules/openid/openid.inc, line 51
OpenID utility functions.

Code

function openid_redirect_form(&$form_state, $url, $message) {
  $form = array();
  $form['#action'] = $url;
  $form['#method'] = "post";
  foreach ($message as $key => $value) {
    $form[$key] = array(
      '#type' => 'hidden',
      '#name' => $key,
      '#value' => $value,
    );
  }
  $form['submit'] = array(
    '#type' => 'submit',
    '#prefix' => '<noscript>',
    '#suffix' => '</noscript>',
    '#value' => t('Send'),
  );
  return $form;
}