You are here

function encrypt_get_key_provider in Encrypt 7.2

Same name and namespace in other branches
  1. 7.3 encrypt.module \encrypt_get_key_provider()

Fetch metadata on a specific key provider plugin.

Parameters

mixed $provider: Name of a key provider method. If no $provider is specified, this function will return info about the default key provider.

Return value

array An array with information about the requested key provider.

3 calls to encrypt_get_key_provider()
encrypt_config_form_submit in includes/encrypt.admin.inc
Form submission handler for encrypt_config_form().
encrypt_get_key_from_key_provider in ./encrypt.module
Get the key from a key provider.
encrypt_requirements in ./encrypt.install
Implements hook_requirements().

File

./encrypt.module, line 450
Main Encrypt Drupal File.

Code

function encrypt_get_key_provider($provider = NULL) {

  // If the provider was not specified, use the provider
  // from the default configuration.
  if (empty($provider)) {
    $config = encrypt_get_default_config();
    $provider = $config['provider'];
  }
  ctools_include('plugins');
  return ctools_get_plugins('encrypt', 'key_providers', $provider);
}