Mercurial > hg > rr-repo
comparison modules/openid/tests/openid_test.install @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * Install, update and uninstall functions for the openid_test module. | |
6 */ | |
7 | |
8 /** | |
9 * Implements hook_install(). | |
10 */ | |
11 function openid_test_install() { | |
12 module_load_include('inc', 'openid'); | |
13 // Generate a MAC key (Message Authentication Code) used for signing messages. | |
14 // The variable is base64-encoded, because variables cannot contain non-UTF-8 | |
15 // data. | |
16 variable_set('openid_test_mac_key', base64_encode(_openid_get_bytes(20))); | |
17 } |