[development] Weird behavior on #default_value

Jakob Petsovits jpetso at gmx.at
Thu Jan 24 15:02:37 UTC 2008


On Thursday, 24. January 2008, Feijó wrote:
>  If I try
>      '#default_value' => 'test ' . $row['name'],
>
>  only test apears!

Imho, that behaviour suggests that something is wrong with $row['name'] and 
less with Form API itself. (Because string concatenation fails even before 
the Form API gets the value passed over.)

Not sure, but maybe print_r($row) and/or gettype($row['name']) reveals some 
useful information...


More information about the development mailing list