This is an example module used in http://www.metaltoad.com/blog/drupal-7-tutorial-creating-custom-filters-views
Since this is only an example, this module is not maintained, updated or supported. If you use this code, you do so at your own risk and will need to modify it for your needs.