function hybridauth_get_enabled_providers in HybridAuth Social Login 7
Same name and namespace in other branches
- 6.2 hybridauth.module \hybridauth_get_enabled_providers()
- 7.2 hybridauth.module \hybridauth_get_enabled_providers()
2 calls to hybridauth_get_enabled_providers()
File
- ./
hybridauth.auth.inc, line 35
Code
function hybridauth_get_enabled_providers() {
$providers =& drupal_static(__FUNCTION__, NULL);
if (!isset($providers)) {
$providers = array();
foreach (hybridauth_get_providers() as $provider_id => $provider_name) {
if ($provider_config = hybridauth_get_provider_config($provider_id)) {
$providers[$provider_id] = $provider_name;
}
}
}
return $providers;
}