You are here

function lockr_get_partner in Lockr 7.2

Same name and namespace in other branches
  1. 7.3 lockr.module \lockr_get_partner()
  2. 7 lockr.module \lockr_get_partner()

Returns the detected partner, if available.

2 calls to lockr_get_partner()
lockr_admin_form in ./lockr.admin.inc
Form constructor for Lockr registration form.
lockr_partner in ./lockr.module
Returns the current partner for this site.

File

./lockr.module, line 70
Hook implementations and callbacks for lockr.

Code

function lockr_get_partner() {
  if (defined('PANTHEON_BINDING')) {
    $desc = <<<EOL
The Pantheor is strong with this one.
We're detecting you're on Pantheon and a friend of theirs is a friend of ours.
Welcome to Lockr.
EOL;
    return array(
      'name' => 'pantheon',
      'title' => t('Pantheon'),
      'description' => $desc,
      'cert' => '/srv/bindings/' . PANTHEON_BINDING . '/certs/binding.pem',
    );
  }
  return NULL;
}