What I am trying to do may fall out of the scope of Tapir. Please let me know if that's the case.
Tables generally deal with data with fixed number of cols and rows. That's what Tapir does.
I love that Tapir can theme a form . With this feature, I can add a column of radio buttons to the table like below. It allows me to handle multiple nodes in my submit function(although I am still trying to figure out an issue with submit function, see my earlier post today)
x c1 c2 c3
x a1 a2 a3
x b1 b2 b3
'submit'
However, is it possible to piggyback some extra form items on to this tapir themed form? e.g. I want to attach an extra row of radio buttons (r1, r2) that don't fit the data table format like the following.
radio r1, r2
x c1 c2 c3
x a1 a2 a3
x b1 b2 b3
'submit'
I tested various hooks and callbacks and didn't see an easy way to do it.
I have a 'hack' idea and want to share it here. Please let me know if it's simply wrong to hack this way. The hack I can see so far is after calling
<?php
$output = tapir_get_table('my_table', $form).drupal_render($form['submit']);
?>, parse the $output html, insert the extra form elements. It's brutal force and ugly.
If anyone knows a better way, could you please share it here.
thanks.
