openid_test.install 443 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the openid_test module.
  5. */
  6. /**
  7. * Implements hook_install().
  8. */
  9. function openid_test_install() {
  10. module_load_include('inc', 'openid');
  11. // Generate a MAC key (Message Authentication Code) used for signing messages.
  12. // The variable is base64-encoded, because variables cannot contain non-UTF-8
  13. // data.
  14. variable_set('openid_test_mac_key', drupal_random_key(20));
  15. }