D6 version?

caramelson - September 29, 2008 - 03:54
Project:Form Table
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:usonian
Status:needs review
Description

I'm sure it's really easy as this module is GREAT and is mostly CSS, but could you make a D6 version?

If not, I can volunteer to make one.

#1

usonian - September 29, 2008 - 11:04
Assigned to:Anonymous» usonian

It would be a good exercise for me - I will try and get to it this week, but if you can't wait I'd certainly accept code for a D6 version.

#2

krampi - October 16, 2008 - 08:18

Hi!

I need this module in drupal 6.x.

If you make that in drupal 6.x version please send me a download url.

Thanks.

Krampi

#3

Barrett - January 13, 2009 - 15:34

I've gotten a D6 version working. What's the best way for me to get the code to you? I can put together patch files or just send you the edited .info and .module files.

For the moment, I've posted the revised version on my site: http://datasmith.net/node/17

Great module, by the way. Thanks for putting it together.

#4

usonian - January 15, 2009 - 16:33

Thanks for taking the initiative Barrett, I will try and take a look sometime soon.

#5

bouton - February 4, 2009 - 09:50

Works great. Thanks!!!

#6

KingMoore - June 1, 2009 - 15:40

anything we can do to get this committed?

#7

usonian - June 2, 2009 - 15:13

Thanks for the bump KingMoore, I will try and look at this soon.

#8

KingMoore - June 2, 2009 - 19:55

Excellent. In the meantime I have tested the D6 version and it is working for me. Just a couple of thoughts:

- would it make sense to have the module automatically set the appropriate elements to tree=>true so we retain the hierarchy in $form_values?

- would it make sense to have the module automatically add

'#prefix' => '<td>',
'#suffix' => '</td>'

to row child elements, making the integration a bit more seemless?

just a couple of thoughts, they could very well be the wrong thoughts :)

#9

sime - July 6, 2009 - 01:52

hey @KingMoore :)

good thoughts IMO. That would be very useful.

#10

corona ronin - August 12, 2009 - 04:02

Hey,

I have tried to use this module (6x branch) but my code doesen't seem to be working. I am using this code as an implementation of hook_form_alter(), and I have used the code from the readme.txt. My code is here:

$form['formtable'] = array(
      '#type' => 'formtable',
      '#title' =>('Formtable'),
      );
     
      $form['formtable']['row1'] = array(
      '#type' => 'formrow',
      );
     
      $form['formtable']['row1']['taxonomy']['tags']['35'] = array(
      '#prefix' => '<td>',
      '#suffix' => '</td>',
      );
     
      $form['formtable']['row1']['taxonomy']['tags']['30'] = array(
      '#prefix' => '<td>',
      '#suffix' => '</td>',
      );

Is there something wrong with the way I have set this up? I'm very much looking to try to put form items in tables.

If you could please help me figure out what I am doing wrong it would be very helpful!!!!

Thanks!

#11

larskleiner - August 24, 2009 - 15:24
Status:active» needs review

Is this module still maintained?

I rolled a quick patch against version 5.x-1.0 to update the module for D6. I did a bit of cleanup as well as 'form_table_element' was wrongly used as the module's namespace in some places. I also changed the package to 'Other' in the info file as this module in my mind doesn't qualify as a development tool.

If you need help to commit this patch and create a 6.x-1.0 branch I'm happy for you to add me as a co-maintainer.

AttachmentSize
314683-formtable.patch 1.89 KB
 
 

Drupal is a registered trademark of Dries Buytaert.