function openid_redirect_form in Drupal 7
Same name and namespace in other branches
- 6 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 110 - OpenID utility functions.
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;
}