This is a simple block module tutorial for drupal 7.