function key_provider_lockr_get_key_value in Lockr 7
Same name and namespace in other branches
- 7.3 plugins/key_provider/lockr.inc \key_provider_lockr_get_key_value()
- 7.2 plugins/key_provider/lockr.inc \key_provider_lockr_get_key_value()
Get callback for key_provider plugin.
Parameters
array $config: Key configuration array.
Return value
string|NULL The key value or NULL.
1 string reference to 'key_provider_lockr_get_key_value'
File
- plugins/
key_provider/ lockr.inc, line 56
Code
function key_provider_lockr_get_key_value($config) {
if (!isset($config['id'])) {
return '';
}
$key_name = $config['id'];
$encoded = isset($config['key_provider_settings']['encoded']) ? $config['key_provider_settings']['encoded'] : NULL;
$key_value = _lockr_get_key($key_name, $encoded);
return $key_value ?: NULL;
}