It's probably picking up on another form on the same page: filter with the form id<br><br><div class="gmail_quote">On Tue, Jul 7, 2009 at 5:58 AM, Michel Morelli <span dir="ltr"><<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi. I have a cck's node. I need to change the value of some fields when the "add" form is created.<br>
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<br>
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.<br>
<br>
Is only a my installation problem or is normal ?<br>
<br>
M.<br>
<br>
-- <br>
Michel 'ZioBudda' Morelli <a href="mailto:michel@ziobuddalabs.net" target="_blank">michel@ziobuddalabs.net</a><br>
Consulenza sistemistica in ambito OpenSource.<br>
Sviluppo applicazioni web dinamiche (LAMP+Ajax)<br>
Telefono: 0200619074<br>
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660<br>
<br>
<a href="http://www.ziobudda.net" target="_blank">http://www.ziobudda.net</a> ICQ: 58351764 <a href="http://www.ziobuddalabs.it" target="_blank">http://www.ziobuddalabs.it</a> Skype: zio_budda<br>
<a href="http://www.ziodrupal.net" target="_blank">http://www.ziodrupal.net</a> MSN: <a href="mailto:michel@ziobuddalabs.it" target="_blank">michel@ziobuddalabs.it</a> JABBER: <a href="mailto:michel@ziobuddalabs.it" target="_blank">michel@ziobuddalabs.it</a><br>
<font color="#888888">
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br>