You are here

function key_provider_lockr_get_key_value in Lockr 7.3

Same name and namespace in other branches
  1. 7 plugins/key_provider/lockr.inc \key_provider_lockr_get_key_value()
  2. 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'
lockr.inc in plugins/key_provider/lockr.inc
Key provider plugin for lockr.

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;
}