function hybridauth_providers in HybridAuth Social Login 7.2
Same name and namespace in other branches
- 6.2 hybridauth.pages.inc \hybridauth_providers()
Returns HybridAuth widget with list of providers icons.
7 string references to 'hybridauth_providers'
- hybridauth_admin_settings in ./
hybridauth.admin.inc - Form constructor for the hybridauth admin settings form.
- hybridauth_get_enabled_providers in ./
hybridauth.module - hybridauth_get_provider_config in ./
hybridauth.module - Returns provider config.
- hybridauth_menu in ./
hybridauth.module - Implements hook_menu().
- hybridauth_providers_list in ./
hybridauth.module - Internal functions.
File
- ./
hybridauth.pages.inc, line 54 - HybridAuth module pages.
Code
function hybridauth_providers($js, $icon_pack) {
$build = array(
'#type' => 'hybridauth_widget',
'#title' => '',
'#hybridauth_widget_type' => 'list',
'#hybridauth_widget_icon_pack' => $icon_pack,
);
if ($js) {
ctools_include('modal');
ctools_modal_render(t('Log in using your account with'), $build);
}
else {
$build['#title'] = t('Log in using your account with');
return $build;
}
}