function hybridauth_get_enabled_providers in HybridAuth Social Login 6.2
Same name and namespace in other branches
- 7.2 hybridauth.module \hybridauth_get_enabled_providers()
- 7 hybridauth.auth.inc \hybridauth_get_enabled_providers()
1 call to hybridauth_get_enabled_providers()
- template_preprocess_hybridauth_widget in ./
hybridauth.theme.inc - Template preprocess function for hybridauth_widget.
File
- ./
hybridauth.module, line 442 - Main file for the HybridAuth module.
Code
function hybridauth_get_enabled_providers() {
static $providers;
if (!isset($providers)) {
$providers = array();
foreach (hybridauth_providers_list() as $provider_id => $provider_name) {
if ($provider_config = hybridauth_get_provider_config($provider_id)) {
$providers[$provider_id] = $provider_name;
}
}
}
return $providers;
}