You are here

function hybridauth_providers_files in HybridAuth Social Login 6.2

Same name and namespace in other branches
  1. 7.2 hybridauth.module \hybridauth_providers_files()

Returns available providers files, keyed by filename without extension.

2 calls to hybridauth_providers_files()
hybridauth_admin_settings in ./hybridauth.admin.inc
@file Administrative pages forms and functions for the HybridAuth module.
hybridauth_providers_list in ./hybridauth.module
Internal functions.

File

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

Code

function hybridauth_providers_files() {
  $cache = cache_get('hybridauth_providers_files');
  if (!empty($cache->data)) {
    $files = $cache->data;
  }
  else {
    $files = file_scan_directory(_hybridauth_library_path() . '/Hybrid/Providers', '\\.php$', array(
      '.',
      '..',
      'CVS',
    ), 0, TRUE, 'name');
    cache_set('hybridauth_providers_files', $files, 'cache', CACHE_TEMPORARY);
  }
  return $files;
}