Time and again we come across requirements where we need to create a block through modules with custom functionality like a custom slider. So, in this tutorial I will show you how to use hook_block_info and a few other hooks to create a custom block.
I have this block on my site where I display a featured article. Nothing fancy, it s just an article which I would like people to have a look and more importantly the article should have a link on the home page so that google can crawl it quickly.
Recently I had a requirement of having social networking icons like Facebook share, Retweet, Google plus on all node pages of a site. So, I decided to have my own SNS module and use hook_theme() function to theme my variables.