On 12/30/2010 4:08 AM, Pierre Rineau wrote: > But I still don't understand the real purpose of making form that are > not #tree'd by the way. #tree is good, and at least it ensures that data > will have the same structure than the form (and more than that, can > avoid name conflicts).
Because often the hierarchy is used for organizationl purposes and not actually changing the data. For example, you might put buttons in a group simply to ensure they stay together (and then weight the group down so that form alters put their info in the right place). Fieldsets are accomplished using a specific #type but you don't usually want the fieldset to appear as part of the return data. Those are the two biggest examples I can think of.