You are here

function hybridauth_openid_form_submit in HybridAuth Social Login 7.2

Same name and namespace in other branches
  1. 6.2 hybridauth.pages.inc \hybridauth_openid_form_submit()

File

./hybridauth.pages.inc, line 627
HybridAuth module pages.

Code

function hybridauth_openid_form_submit($form, &$form_state) {
  $query = drupal_get_query_parameters() + drupal_get_destination();

  // Unset destination in global $_GET so that drupal_goto() doesn't use it.
  unset($_GET['destination']);
  $query['openid_identifier'] = $form_state['values']['openid_identifier'];
  drupal_goto('hybridauth/window/OpenID', array(
    'query' => $query,
  ));
}