drupal

Drupal: customize form label

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.

Category:

Improve Drupal permission system: administer taxonomy term & administer menu item

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:

Category:

Integrate Drupal registration form with ubercart checkout

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.

Category:

Drupal theme table "bug"

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.

Category:

Tags:

Is Drupal Tablesort broken in design?

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.

Category:

Pages

Subscribe to RSS - drupal