Going Global in Drupal: Too good to be true?

Going Global in Drupal: Too good to be true?



There is a timeless law that every serious blogger needs to remember. As this law doesn’t seem to have a name yet, I’m naming it Gillmor’s law , after Dan Gillmor. Roughly stated, the law is:

“Your readers know more than you do.”

I’ve discovered a solution to a common drupal programing problem: how to avoid excessively running something along the lines of “$node = node_load(arg(1));” in hooks or functions that don’t have node data available to them.

The solution was so easy, and had so many different uses in different contexts that I’m nervous, and know that I must have done something idiotic. Thats where you, my dear reader, come in1.

Leave a Reply

Your email address will not be published.