7 Feb
2007
7 Feb
'07
2:08 p.m.
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.