Modifying Form Table module to work in Drupal 6

One issue I've struggled with while trying to find my way around Drupal's Form API is that there appeared to be no easy way of putting input elements into a table. The solution is to create new form elements using the elements hook, the process of which has been modularized into the Form Table module. Unfortunately Form Table hasn't, as of this writing, published a version compatible with Drupal 6.

The code didn't look too tough though, so I decided to try my hand at the conversion. It turned out to be easier than I expected. Other than adding a core parameter to the .info file, the only thing the module really required to work in D6 was registering the themeing functions used to render the formtable and formrow elements it registered.

I've responded to the issue thread in the module project page stating that I've gotten a D6 version working, but haven't gotten a response from the maintainer yet. For the meantime, I'm attaching the code here. Enjoy.

AttachmentSize
formtable_D6.tar_.gz7.59 KB