You are here

function hybridauth_popup_openid_form_submit in HybridAuth Social Login 7

File

./hybridauth.pages.inc, line 538

Code

function hybridauth_popup_openid_form_submit($form, &$form_state) {
  $destination = isset($_GET['destination']) ? $_GET['destination'] : 'user';
  unset($_GET['destination']);
  $query = drupal_get_query_parameters();
  $query['openid_identifier'] = $form_state['values']['openid_identifier'];
  $query['destination'] = $destination;
  drupal_goto('hybridauth/popup', array(
    'query' => $query,
  ));
}