Pages

Friday, December 9, 2011

IE Unlimited CSS Loader

IE Unlimited CSS Loader

if you use drupal cache's option to optimise css files, all your css will get merge into one. so no need of this module

Monday, November 14, 2011

Google news in Hindi

Google news in हिंदी : http://news.google.com/news?ned=hi_in

Reading news in hindi is always saves time for me. I know all our hindi news websites are bit cheap, and content quality is not comparative to English, like Times of India or The Hindu. But Nobody want to stare computer screen for long.
I start my day with Google news, and I enjoy reading news in my mother-tongue. 

Friday, September 9, 2011

Discount module for ubercart

I have gone through with every discount module for this. but none of them helped me. Then It was done very easily via hook_uc_cart_alter()
I feel very happy now.

Tuesday, June 28, 2011

Drupal | programmatically create node with file field

$node = new StdClass();
        $node->type = 'bzl_img';
        $node->uid = $_GET['user_id'];
        $node->field_bzl_img_ref[0]['nid']=$_GET['bz_id'];
        $node->status = 0;
        $node->field_bzl_img_main[0]['value']=0;

Wednesday, March 2, 2011

.tpl file output using theme function

So, you have prepared the output in one of your module function with all complicated business logic client specified in last meeting.  Your "return ($output);" throws everything on screen. You became glad to see your code worked finally.
And if Table layout is required you pushed all html in $output variable and theming of your own module page become hectic. Better to go with tpl output.