function lockr_settings in Lockr 7.3
Returns the Lockr settings for this site.
1 call to lockr_settings()
- lockr_client in ./
lockr.module - Returns the Lockr client for this site.
File
- ./
lockr.module, line 106 - Hook implementations and callbacks for lockr.
Code
function lockr_settings() {
if (variable_get('lockr_custom')) {
$cert_path = drupal_realpath(variable_get('lockr_cert'));
}
else {
$partner = lockr_get_partner();
$cert_path = $partner ? $partner['cert'] : NULL;
}
$cls = variable_get('lockr_settings_class', '\\Lockr\\LockrSettings');
$host = variable_get('lockr_api_host');
return new $cls($cert_path, $host);
}