Make your own modules - Hooks, Actions, and Triggers - pg 56