openid_test.install

Install, update and uninstall functions for the openid_test module.

File

drupal-7.x/modules/openid/tests/openid_test.install
View source
  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. }