| 1 |
<?php
|
| 2 |
// $Id: openid_test.install,v 1.2 2009/05/13 19:42:16 webchick Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Install, update and uninstall functions for the openid_test module.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Implement hook_install().
|
| 11 |
*/
|
| 12 |
function openid_test_install() {
|
| 13 |
module_load_include('inc', 'openid');
|
| 14 |
// Generate a MAC key (Message Authentication Code) used for signing messages.
|
| 15 |
// The variable is base64-encoded, because variables cannot contain non-UTF-8
|
| 16 |
// data.
|
| 17 |
variable_set('openid_test_mac_key', base64_encode(_openid_get_bytes(20)));
|
| 18 |
}
|