Ported to Drupal 7.
Example module.