home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (openid_test.install)

This example Drupal source code file (openid_test.install) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

base64_encode, function, openid, openid_test_install, php

The openid_test.install Drupal example source code

// $Id: openid_test.install,v 1.4 2009/12/04 16:49:47 dries Exp $

 * @file
 * Install, update and uninstall functions for the openid_test module.

 * Implements hook_install().
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)));

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal openid_test.install source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.