Please post the code when you have completed it. It is always good to have options and flexibility. I am sure there are other Moodlers who need the functionality your block provides.
Also keep your eye on The following thread.
Where to find blocks?
Some folks are working on a Blocks Repository for Moodle.