drupal 6
Or how to tinker with the menu on the fly.
Writing an XMLRPC service for Drupal is very simple and offers limitless possibilities for everything from app development and content sharing to remote user authentication.
OR fun with drupal_render().
As necessary evils go, hand-coding php for Views block arguments has always been one of my least favorites. It's a tedious PITA and replicating it across unrelated sites (think related content blocks) has always sucked. Thanks to Views default argument from Context and techniques demonstrated by Seth Cohn we don't have to do this anymore.
Fun with "#disabled' => TRUE
- freeman's blog
- Login or register to post comments
- Read more
OR how a little known (but incredibly common) coding error drove one module maintainer to throw in the towel.
Ran into a good one this morning. You know, one of those bugs where after three hours you've isolated the problem down to a single line of obviously well-written and demonstrably correct code.
So after spending another hour or so re-running unit tests while I questioned my sanity I finally figured out what the problem was: db_query() doesn't play nice if you try to do straight %s substitution of an array into a query.
- freeman's blog
- Login or register to post comments
- Read more
How to greatly increase the odds your patch will be accepted in two simple steps.
Think unit testing is ridiculous unnecessary overhead? So did I until I actually tried them, and while writing tests isn't glamorous the benefits are unbelievable. Even better, the Simpletest module makes writing unit tests for Drupal a snap.
Got this error this morning. A quick burn through drupal.org didn't turn up an explanation of what, exactly, this error message means so I did a little digging. Long story short, if you're getting this error it means you've screwed something up in your module's .info file.
- freeman's blog
- Login or register to post comments
- Read more
