You are here

function _lockr_delete_key in Lockr 7.3

Same name and namespace in other branches
  1. 7 lockr.module \_lockr_delete_key()
  2. 7.2 lockr.module \_lockr_delete_key()

Deletes a key from Lockr.

Parameters

string $key_name: The key name.

1 call to _lockr_delete_key()
key_provider_lockr_delete_key_value in plugins/key_provider/lockr.inc
Delete key form submit callback.

File

./lockr.module, line 171
Hook implementations and callbacks for lockr.

Code

function _lockr_delete_key($key_name) {
  $lc = lockr_client();
  try {
    $lc
      ->deleteSecretValue($key_name);
  } catch (\Exception $e) {
    watchdog_exception('lockr', $e);
    return FALSE;
  }
  return TRUE;
}