summaryrefslogtreecommitdiff
path: root/modules/openid/tests/openid_test.install
blob: 3bd4978f1a2eeeb0da9331fdeebfb0dc94744abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

/**
 * @file
 * Install, update and uninstall functions for the openid_test module.
 */

/**
 * Implements hook_install().
 */
function openid_test_install() {
  module_load_include('inc', 'openid');
  // Generate a MAC key (Message Authentication Code) used for signing messages.
  // The variable is base64-encoded, because variables cannot contain non-UTF-8
  // data.
  variable_set('openid_test_mac_key', base64_encode(_openid_get_bytes(20)));
}