You are here

function _hybridauth_popup_list in HybridAuth Social Login 7

1 call to _hybridauth_popup_list()
hybridauth_popup in ./hybridauth.pages.inc

File

./hybridauth.pages.inc, line 137

Code

function _hybridauth_popup_list($hybridauth) {
  _hybridauth_add_widget_css();
  $build = array(
    '#markup' => theme('hybridauth_popup_list', array()),
  );

  // Are we working inside a colorbox overlay?
  if (isset($_GET['overlay']) && $_GET['overlay']) {
    $page = array(
      'page_top' => '',
      '#children' => drupal_render($build),
      'page_bottom' => '',
    );
    print theme('html', array(
      'page' => $page,
    ));
    drupal_exit();
  }
  return $build;
}