You are here

function lockr_site_client in Lockr 7.2

Same name and namespace in other branches
  1. 7 lockr.module \lockr_site_client()

Returns the Lockr site client.

4 calls to lockr_site_client()
drush_lockr_register in ./lockr.drush.inc
Registers the site with lockr.
lockr_admin_csr_submit in include/csr_form.inc
lockr_admin_migrate_submit in include/migrate_form.inc
lockr_check_registration in ./lockr.module
Returns if this site is currently registered with Lockr.

File

./lockr.module, line 91
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 SiteClient($base_client);
  }
  return $client;
}