function oauth2_user_form_resubmit in OAuth2 Login 8
Same name and namespace in other branches
- 7.2 oauth2_user/authenticate.inc \oauth2_user_form_resubmit()
If there is a $_SESSION['oauth2_user']['form_state'], then this is a redirect after login. Call the submit function again.
1 call to oauth2_user_form_resubmit()
- oauth2_user_init in oauth2_user/
authenticate.inc - Implements hook_init().
File
- oauth2_user/
authenticate.inc, line 58 - Misc utility functions.
Code
function oauth2_user_form_resubmit() {
$form_state = $_SESSION['oauth2_user']['form_state'];
unset($_SESSION['oauth2_user']['form_state']);
$form_id = $form_state['values']['form_id'];
$submit = $form_id . '_submit';
if (function_exists($submit)) {
$submit(NULL, $form_state);
}
}