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

Code

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

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