In Drupal each piece of content that can be placed into a region is called a "block". So instead you want to create a Custom Block. Here's a guide, http://fourkitchens.com/blog/2012/07/18/building-custom-blocks-drupal-7.
https://drupal.org/node/1074360, Here is the Drupal module creation tutorial, the guide "generating block content" will be helpful for you.