2009-04-29 07:29:59 +00:00
|
|
|
<?php
|
|
|
|
// $Id$
|
|
|
|
|
2009-05-13 19:42:18 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Install, update and uninstall functions for the openid_test module.
|
|
|
|
*/
|
|
|
|
|
2009-04-29 07:29:59 +00:00
|
|
|
/**
|
2009-05-27 18:34:03 +00:00
|
|
|
* Implement hook_install().
|
2009-04-29 07:29:59 +00:00
|
|
|
*/
|
|
|
|
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)));
|
|
|
|
}
|