[support] form_alter and form_form_id_alter. The form are not the same.
Victor Kane
victorkane at gmail.com
Tue Jul 7 09:08:31 UTC 2009
It's probably picking up on another form on the same page: filter with the
form id
On Tue, Jul 7, 2009 at 5:58 AM, Michel Morelli <michel at ziobuddalabs.it>wrote:
> Hi. I have a cck's node. I need to change the value of some fields when the
> "add" form is created.
> I know that I need to use hook_fom_alter() or hook_form_form_id_alter().
> But now the question: why the output of a print_r($form) executed in the
> hook_form_form_id_alter() function is not the same that I receive if I exec
> the print_r() in the hook_form_alter() function. The first does not contain
> the cck fields.
>
> Is only a my installation problem or is normal ?
>
> M.
>
> --
> Michel 'ZioBudda' Morelli michel at ziobuddalabs.net
> Consulenza sistemistica in ambito OpenSource.
> Sviluppo applicazioni web dinamiche (LAMP+Ajax)
> Telefono: 0200619074
> Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
>
> http://www.ziobudda.net ICQ: 58351764
> http://www.ziobuddalabs.it Skype: zio_budda
> http://www.ziodrupal.net MSN:
> michel at ziobuddalabs.it
> JABBER: michel at ziobuddalabs.it
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090707/c3682200/attachment-0001.htm>
More information about the support
mailing list