function openid_login_validate in Drupal 6
Same name and namespace in other branches
- 7 modules/openid/openid.module \openid_login_validate()
Login form _validate hook
1 string reference to 'openid_login_validate'
- openid_form_alter in modules/
openid/ openid.module - Implementation of hook_form_alter : adds OpenID login to the login forms.
File
- modules/
openid/ openid.module, line 140 - Implement OpenID Relying Party support for Drupal
Code
function openid_login_validate($form, &$form_state) {
$return_to = $form_state['values']['openid.return_to'];
if (empty($return_to)) {
$return_to = url('', array(
'absolute' => TRUE,
));
}
openid_begin($form_state['values']['openid_identifier'], $return_to, $form_state['values']);
}