function lockr_site_client in Lockr 7
Same name and namespace in other branches
- 7.2 lockr.module \lockr_site_client()
Returns the Lockr site client.
2 calls to lockr_site_client()
- drush_lockr_lockr_register in ./
lockr.drush.inc - lockr_check_registration in ./
lockr.module - Returns if this site is currently registered with Lockr.
File
- ./
lockr.module, line 86 - Hook implementations and callbacks for lockr.
Code
function lockr_site_client() {
$client =& drupal_static(__FUNCTION__, NULL);
if ($client === NULL) {
$base_client = lockr_client();
if ($base_client === FALSE) {
return FALSE;
}
$client = new \Lockr\SiteClient($base_client);
}
return $client;
}