[development] Forms API -- default values without anything in database
Derek Wright
drupal at dwwright.net
Wed Dec 19 01:33:37 UTC 2007
Sorry for replying so late, but I was just catching up on some old
mail and noticed this. I wanted to point out another gotcha:
On Nov 24, 2007, at 2:21 PM, Syscrusher wrote:
> 'last_name' => array(
> '#type' => 'textfield',
> '#title' => t('Last name'),
> '#size' => 35,
> '#maxlength' => 35,
> '#weight' => -10,
> '#value' => $form_values['last_name'],
^^^^^^^^
evil. you mean '#default_value' here. ;)
that said, sure, #after_build is nice and all.
enjoy,
-derek (dww)
More information about the development
mailing list