[development] form_builder and the $form['#type'] .'_value' callback.

Karoly Negyesi karoly at negyesi.net
Wed Feb 7 13:08:48 UTC 2007

Now, this makes more sense than it did last night. 

Yes. This is a good idea. Moving that switch into {$type}_value will let us add more elements easily and will not affect non-submitted forms where I am concerned about speed. I was also concerned about what will happen with the $form['#needs_validation'] = TRUE; part but that's also easy: currently _value does not return anything, not it will simply return needs_validation aka. return TRUE if you assigned #value based on $edit and then we can OR with required.

Patch is forthcoming.

More information about the development mailing list