You are here

function _hybridauth_window_render_form in HybridAuth Social Login 7.2

2 calls to _hybridauth_window_render_form()
hybridauth_window_start in ./hybridauth.pages.inc
_hybridauth_check_additional_info in ./hybridauth.pages.inc

File

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

Code

function _hybridauth_window_render_form($form, $provider_id) {
  $window_type = variable_get('hybridauth_provider_' . $provider_id . '_window_type', 'current');
  if ($window_type == 'current') {
    return $form;
  }
  else {

    // 'popup' or modal ('colorbox', 'shadowbox', 'fancybox', 'lightbox2')
    $page = element_info('page');
    $page['#children'] = theme('status_messages') . drupal_render($form);
    print theme('html', array(
      'page' => $page,
    ));
  }
  drupal_exit();
}