function key_provider_lockr_get_key_value in Lockr 7.3
Same name and namespace in other branches
- 7 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 67 - Key provider plugin for lockr.
Code
function key_provider_lockr_get_key_value($config) {
if (!isset($config['id'])) {
return '';
}
$key_name = $config['id'];
return _lockr_get_key($key_name) ?: NULL;
}