You are here

function lockr_get_partner in Lockr 7

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

Returns the detected partner, if available.

3 calls to lockr_get_partner()
lockr_admin_advanced_submit in include/advanced_form.inc
Save advanced settings.
lockr_admin_form in ./lockr.admin.inc
Form constructor for Lockr registration form.
lockr_init in ./lockr.module
Implements hook_init().

File

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

Code

function lockr_get_partner() {
  if (defined('PANTHEON_BINDING')) {
    return array(
      'name' => 'pantheon',
      'title' => t('Pantheon'),
      'description' => t('Our system has detected that your website is hosted on one of our supported providers. ' . 'Please fill out the fields below to continue installation of Lockr and securing your API and encryption keys.'),
      'cert' => '/srv/bindings/' . PANTHEON_BINDING . '/certs/binding.pem',
    );
  }
  return NULL;
}