Update to field_table

magico - February 24, 2006 - 20:46
Project:Flexinode
Version:4.6.x-1.x-dev
Component:flexinode.module (core)
Category:task
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Hi,

First of all I would like to request an analysis to the current contrib fields, because I think that several of those fields should be part of flexinode main tree. Being under contrib seems that they are discarded or so...

Anyway, the following patch (in fact it was almost a rewrite) of the field_table allows:

  • an option to define the default number of rows
  • an option to define the default number of columns, and their names
  • the table in edit and view mode will always consider the defined columns

Further, some new things that can be done:

  • option under the definition of the columns that will allow to define the kind of field editor, instead of the default "text_area" input
  • validation of the input data thru those fields

Hope you like it! More work to do...

Regards,
Fernando Silva

AttachmentSize
field_table.inc.patch4.85 KB

#1

magico - March 3, 2006 - 19:39

If the table is not filled it will return an completelly empty array instead of the old code that tried to check if the first row was filled!

AttachmentSize
field_table.inc_0.patch 5.89 KB

#2

magico - March 3, 2006 - 19:41

Also the last patch uses theme_table to format the final data table instead of using direct HTML!

#3

magico - October 18, 2008 - 20:46
Component:Code» flexinode.module (core)
Status:needs review» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.