You are here

function lockr_init in Lockr 7

Implements hook_init().

File

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

Code

function lockr_init() {
  if (!variable_get('lockr_partner')) {
    $partner = lockr_get_partner();
    if ($partner) {
      variable_set('lockr_partner', $partner['name']);
      variable_set('lockr_cert', $partner['cert']);
    }
  }
}