You are here

function hybridauth_providers in HybridAuth Social Login 6.2

Same name and namespace in other branches
  1. 7.2 hybridauth.pages.inc \hybridauth_providers()
1 string reference to 'hybridauth_providers'
hybridauth_menu in ./hybridauth.module
Implements hook_menu().

File

./hybridauth.pages.inc, line 23

Code

function hybridauth_providers($js) {
  $build = array(
    '#type' => 'hybridauth_widget',
    '#title' => '',
    '#hybridauth_widget_type' => 'list',
  );
  if ($js) {
    ctools_include('modal');
    ctools_modal_render(t('Log in using your account with'), drupal_render($build));
  }
  else {
    $build['#title'] = t('Log in using your account with');
    return drupal_render($build);
  }
}