You are here

function hybridauth_get_enabled_providers in HybridAuth Social Login 7

Same name and namespace in other branches
  1. 6.2 hybridauth.module \hybridauth_get_enabled_providers()
  2. 7.2 hybridauth.module \hybridauth_get_enabled_providers()
2 calls to hybridauth_get_enabled_providers()
template_preprocess_hybridauth_popup_list in ./hybridauth.widget.inc
template_preprocess_hybridauth_widget in ./hybridauth.widget.inc

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;
}