You are here

function key_provider_config_get_key_value in Key 7.3

Return a key stored with the configuration.

Parameters

array $config: The key configuration for which to retrieve the value.

Return value

string The key value.

1 string reference to 'key_provider_config_get_key_value'
config.inc in plugins/key_provider/config.inc

File

plugins/key_provider/config.inc, line 70

Code

function key_provider_config_get_key_value($config) {
  $key_value = isset($config['key_provider_settings']['key_value']) ? $config['key_provider_settings']['key_value'] : '';
  if (isset($config['key_provider_settings']['base64_encoded']) && $config['key_provider_settings']['base64_encoded'] == TRUE) {
    $key_value = base64_decode($key_value);
  }
  return $key_value;
}