You are here

function _lockr_delete_key in Lockr 7.2

Same name and namespace in other branches
  1. 7.3 lockr.module \_lockr_delete_key()
  2. 7 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 271
Hook implementations and callbacks for lockr.

Code

function _lockr_delete_key($key_name) {
  $client = lockr_key_client();
  if ($client) {
    try {
      $client
        ->delete($key_name);
    } catch (\Exception $e) {
      watchdog_exception('lockr', $e);
    }
  }
}