[development] Problem with hook_form_alter: Cannot unset string offsets

Jeff Greenberg jeff at ayendesigns.com
Mon Jun 28 14:59:15 UTC 2010


Hi Pierre,
I'll do that regarding the type, thanks. So, by 'take care of'... the 
original field is an autocomplete text field, and I'm thinking you mean 
that I should disassemble it (or at least unset it) first, rather than 
have array keys still present with the 'value' type leftover from the 
text field?

Jeff
> Some content fields have a complex structure you should take care of.
>
> Another note, you might want to use '#type' =>  'value' instead of
> 'hidden', which will be saved into form cache but not rendered at all in
> the final HTML.
>
> Pierre.
>
>
>
>    


More information about the development mailing list