[development] re-arranging mutlivalue fields

nan wich nan_wich at bellsouth.net
Fri Mar 5 00:13:26 UTC 2010


In the face of things like this, we often turn to the form construction to do what you want. However, you may be far better off looking at the theme function. Just take the values by key and build a table to put them side-by-side.
 
Nancy E. Wichmann, PMP
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.




________________________________
From: Bruno De Bondt <bruno at indymedia.be>
To: development at drupal.org
Sent: Thu, March 4, 2010 4:32:32 PM
Subject: [development] re-arranging mutlivalue fields

Hi,

I have two CCK multivalue fields (a nodereference field and a
textfield), both with a set amount of maximum values. My goal is to
build a form that lists these fields as 'nodereference + textfield'
groups, in order to simplify user input. This doesn't seem to be so easy
to do with form_alter(), since a multivalue field is an array of its
own, so re-ordering the fields seems tricky.

Does anyone have ideas on how to approach this?

thanks,
- bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100304/60d69b85/attachment.html 


More information about the development mailing list