function hybridauth_get_connected_providers in HybridAuth Social Login 7.2
Same name and namespace in other branches
- 6.2 hybridauth.module \hybridauth_get_connected_providers()
Returns connected providers for the current user.
1 call to hybridauth_get_connected_providers()
- hybridauth_user_identity in ./
hybridauth.pages.inc - Menu callback; manage HybridAuth identities for the specified user.
File
- ./
hybridauth.module, line 954 - Main file for the HybridAuth module.
Code
function hybridauth_get_connected_providers() {
$connected_providers = array();
if (user_is_logged_in() && ($hybridauth = hybridauth_get_instance())) {
if (is_object($hybridauth)) {
foreach ($hybridauth
->getConnectedProviders() as $provider_id) {
$connected_providers[$provider_id] = hybridauth_get_provider_name($provider_id);
}
}
}
return $connected_providers;
}