[development] form elements will be easy to put into a table

Gordon Heydon gordon at heydon.com.au
Fri Apr 27 03:16:51 UTC 2007


Hi,

I am actually part way through doing this, I have a table, row, and cell 
which can be implemented.

I will make sure it is going to commit it to my sandbox.

Gordon.

Karoly Negyesi wrote:
> If someone implements the following.
> 
> Change theme('table') so that it uses a fapi style array and render it 
> with drupal_render.
> 
> To upgrade existing tables, for a cell,
> 
> a) if the content was just 'foo' , make that array('#value' => 'foo')
> b) if there was a 'data' key use #value instead . All other keys go 
> under #attributes
> 
> For a row, if there was no data key, nothing to do. If there was, move 
> everything else to #attributes and make the 'data' the content of row.
> 
> Thoughts and volunteers are welcome.
> 
> Regards,
> 
> NK
> 
> Ps. Rationale, we require non-Drupaler coders to learn several 
> structured complex arrays. This decreases the number. And eventually we 
> will want drupal_render to pwn the page so this is a step...
> 
> !DSPAM:1000,46316198187148362916074!
> 


More information about the development mailing list