Born in United Arab Emirates & raised in Pakistan. Have accumulated 16 years of experience in Opensource Software Research & Development.

Specialized in Enterprise Portal and Collaboration Suites' Development. Currently working as a Sr Consultant Developer (Drupal) at Toptal Inc  >>>

Optimizing/Caching Poll's Block

We all know that Poll is a core module which ships with Drupal. After installing this module we can setup poll and we can place a "most recent poll" block any where in region, usually its on a front page. I investigated this module and I found that it takes 20-25 queries to load most recent poll block and when a user submits a vote on that poll it does a cache_clear_all. Which was like WOW, in addition to submitting a vote users were also clearing my cached data. Optimizing or Caching poll's block for any kind of user (authenticated or anonymous) is like piece of cake, but figuring out how to do it was really a big pain in a neck.

Advanced Workflow Management

Advance Workflow Management will help workflow admin define single workflow with states adding a layer of groups at top of that; access control will be based on groups. This module will create a new tab "Workflow Groups" through which admins can create various roles as workflow groups, assign group role to the user (author/editor/publishers) along with the role that manipulate workflow.

Index additional information using node_api hook

I was going through one of my projects and I came to know that how simple it is to insert additional information into your site's search indexes using hook_nodeapi. A comprehensive details about hook_nodeapi can be found here.

Following are the steps involved to make this happen:

  • Create a module that implements hook_nodeapi, lets say example_nodeapi()

function example_nodeapi($node, $op) {
  // Function definition here
}

A hundred after nearly five years

After a long five years of out of form batting, Shahid Afridi really did a boom boom when he knocked 100 on Sri-Lanka soil.. Today its a big day for Afridi as he also became the third batsmen to hit most sixes againt single team; he smashed 51 Sixes against Srilanka, he is following Sanath Jaysuriya of Srilanka who smashed 53 Sixes against Pakistan.

Choice of a Hell :)

A man dies and goes to hell. There he finds that there is a different hell for each country. He decides he'll pick the least painful to spend his eternity. He goes to Germany Hell and asks, "What do they do here?"

He is told "first they put you in an electric chair for an hour. Then they lay you on a bed of nails for another hour. Then the German devil comes in and whips you for the rest of the day".

Urdu (اردو) Translation on Drupal and Google

Recently we managed to get approval of Urdu translation on Drupal at Drupal Localization Project. We started with very few contributors who are working very hard to translate all strings/interfaces for Drupal Core and Drupal contributed modules.

Urdu translation for Drupal can be found here. I am looking for people who are good in english to urdu translation to contribute to this project.

Movie: Kurbaan and Faisal Shahzad

Last week I got a chance to watch a hindi movie "Kurbaan", I was surprised to see how Karan Johar was able to create this kind of action movie without support of any external sponsorship.  You guys know what i mean Image removed., funny part was that all main characters were shown as Pakistani (Saif Ali Khan, OM Puri) and they used Indian soil and girl (Karina Kapoor) to accomplish their mission...

Say No to Blasphemy on Facebook and Youtube

May 20, 2010 was the big day for the people who support Blasphemy and who condemn all acts of Blasphemy. Following my religious values I was and will strongly condemn all kind of Blasphemy acts toward our Prophet Muhammad صلى الله عليه وسلم‎ (P.B.U.H) , whether its on Youtube, Facebook or any media platform.

I have not seen any religion in the world that supports these kind of acts, favoring these kind of acts can definitely create hatered among different groups.

Converting Texfield into autocomplete using Drupal's Form API

Inside Drupal APIs we can find separate set of APIs that deals with Forms, their elements and properties. Forms API reference guide has all the elements, properties and complete reference to the forms control structure where you can find easily a what properties all forms element carry. For more details please see Forms API Quick Start Guide.

Subscribe to