function _hybridauth_window_render_form in HybridAuth Social Login 7.2
2 calls to _hybridauth_window_render_form()
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();
}