You are here

function hybridauth_get_provider_name in HybridAuth Social Login 6.2

Same name and namespace in other branches
  1. 7.2 hybridauth.module \hybridauth_get_provider_name()
  2. 7 hybridauth.auth.inc \hybridauth_get_provider_name()

Returns auth provider name by provider ID.

2 calls to hybridauth_get_provider_name()
hybridauth_get_connected_providers in ./hybridauth.module
Returns connected providers for the current user.
template_preprocess_hybridauth_provider_icon in ./hybridauth.theme.inc
Template preprocess function for hybridauth_provider_icon.
1 string reference to 'hybridauth_get_provider_name'
hybridauth_menu in ./hybridauth.module
Implements hook_menu().

File

./hybridauth.module, line 437
Main file for the HybridAuth module.

Code

function hybridauth_get_provider_name($provider_id) {
  $providers = hybridauth_providers_list();
  return isset($providers[$provider_id]) ? $providers[$provider_id] : NULL;
}