Submitted by bao on Mon, 12/13/2010 - 14:18
This is a quick post, dedicated to my collage, to help him getting better with Drupal.
I always enjoy Drupal Form API with the standard output, easy to use, and easy for extension. But sometime, due to special reason, you only want to display the form input itself, no wrapper div or label. In Drupal 7, it can be as simple as changing a boolean value, but for Drupal 6 it's a big trick. And here is the trick.
Submitted by bao on Sat, 05/29/2010 - 19:59
Whenever a new comer asks me about how to start with Drupal, I always warn him about Drupal's high learning curve and lack of usability before giving him advices. It's not only applied for developers, but also for end-users. This case is an example:
This time, my friend asks me about how to limit user access to taxonomy vocabulary term and menu item. In detail:
Submitted by bao on Sun, 05/16/2010 - 13:43
I had a very interesting experience with Drupal and Ubercart this week. One of my client ask me to implement a membership-based website, provide sophisticated content to premium users. The initial requirement is very simple: add a Package option in Sign up form, if user choose a premium package then require the user to complete the payment before accessing his account. This is a common requirement and any web developer would likely to run into one during his development life.
Submitted by bao on Fri, 02/12/2010 - 17:51
I happen to find another bug with Drupal theme table functions. Before reading further, make sure you know about theme table function. In cell information, you can pass use an array with header key to indicate that this cell is a header cell (TH tag). So the following code will generate a pair of TH & TD tags for you each rows.
Submitted by bao on Fri, 02/05/2010 - 18:34
Every Drupal developer knows about tablesort API. It's useful when you work with table list, especially is the tablesort_get_order and tablesort_get_sort functions. But I think these functions are broken in design. Here is how it is broken.
Pages