function lockr_key_client in Lockr 7
Same name and namespace in other branches
- 7.2 lockr.module \lockr_key_client()
Returns the Lockr key client.
3 calls to lockr_key_client()
- _lockr_delete_key in ./
lockr.module - Deletes a key from Lockr.
- _lockr_get_key in ./
lockr.module - Gets a key from Lockr.
- _lockr_set_key in ./
lockr.module - Sets a key value in lockr.
File
- ./
lockr.module, line 105 - Hook implementations and callbacks for lockr.
Code
function lockr_key_client() {
$client =& drupal_static(__FUNCTION__, NULL);
if ($client === NULL) {
$base_client = lockr_client();
if ($base_client === FALSE) {
return FALSE;
}
$client = new \Lockr\KeyClient($base_client);
}
return $client;
}