function lockr_client in Lockr 7.2
Same name and namespace in other branches
- 7.3 lockr.module \lockr_client()
- 7 lockr.module \lockr_client()
Returns the Lockr client for this site.
2 calls to lockr_client()
- lockr_key_client in ./
lockr.module - Returns the Lockr key client.
- lockr_site_client in ./
lockr.module - Returns the Lockr site client.
File
- ./
lockr.module, line 123 - Hook implementations and callbacks for lockr.
Code
function lockr_client() {
$client =& drupal_static(__FUNCTION__, NULL);
if ($client === NULL) {
$client = Lockr::create(lockr_partner());
}
return $client;
}