function _lockr_set_key in Lockr 7.3
Same name and namespace in other branches
- 7 lockr.module \_lockr_set_key()
- 7.2 lockr.module \_lockr_set_key()
Sets a key value in lockr.
Parameters
string $name: The key name.
string $value: The key value.
string $label: The key label.
Return value
bool TRUE if they key set successfully, FALSE if not.
2 calls to _lockr_set_key()
- key_provider_lockr_set_key_value in plugins/
key_provider/ lockr.inc - Set callback for key_provider plugin.
- lockr_migrate_keys_batch_op in ./
lockr.forms.inc
File
- ./
lockr.module, line 153 - Hook implementations and callbacks for lockr.
Code
function _lockr_set_key($name, $value, $label) {
$lc = lockr_client();
try {
$lc
->createSecretValue($name, $value, $label);
} catch (\Exception $e) {
watchdog_exception('lockr', $e);
return FALSE;
}
return TRUE;
}