Start with this .. change:<br><br>function myformalter_form_alter($form<div style="direction: ltr;">_id, &amp;$form) {<br> &nbsp; &nbsp;if ($form_id == &#39;edit-junk-node-form&#39;) {<br> &nbsp; &nbsp; &nbsp;$form[&#39;attachments&#39;][&#39;#collapsed&#39;] = FALSE;
<br> &nbsp; &nbsp; &nbsp;$form[&#39;author&#39;][&#39;#collapsed&#39;] = FALSE;<br> &nbsp; &nbsp;}<br>}<br><br></div>to:<br><br>function myformalter_form_alter($form<div style="direction: ltr;">_id, &amp;$form) {<br>&nbsp;&nbsp; print $form_id . &quot;&lt;br&gt;&quot;;
<br>&nbsp;&nbsp; print &quot;&lt;pre&gt;&quot;; print_r($form); print &quot;&lt;/pre&gt;&quot;;<br><br>&nbsp;&nbsp; if ($form_id == &#39;edit-junk-node-form&#39;) {<br> &nbsp; &nbsp; &nbsp;$form[&#39;attachments&#39;][&#39;#collapsed&#39;] = FALSE;<br> &nbsp; &nbsp; &nbsp;$form[&#39;author&#39;][&#39;#collapsed&#39;] = FALSE;
<br> &nbsp; &nbsp;}<br>}</div><br>When you go to the submission page, it wil spit out the form id.&nbsp; Make sure this matches &quot;edit-junk-node-form&quot; (I suspect it doesn&#39;t, form ids don&#39;t usually start with &#39;edit&#39;).
<br><br>If it does match, check the rest of the output and make sure &#39;attachments&#39; and &#39;author&#39; are correct array indexes to be targeting.<br><br>William.<br><br><div><span class="gmail_quote">On 7/18/07, 
<b class="gmail_sendername">John Thomas</b> &lt;<a href="mailto:drupal.org-2007@jt-socal.com">drupal.org-2007@jt-socal.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In Drupal 5.1, when creating a node type junk, I would like the Author<br>and Attachments blocks to be expanded (i.e. [&#39;#collapsed&#39;] = FALSE;)<br><br>Based on searching around <a href="http://drupal.org">drupal.org
</a>, I decided to create a module to<br>achieve this.&nbsp;&nbsp;Following is my code.&nbsp;&nbsp;It does not seem to work, the<br>attachments and author blocks are still collapsed.&nbsp;&nbsp;Can you help?&nbsp;&nbsp;Any<br>suggestions so I can learn how to debug this myself?&nbsp;&nbsp;I do have the
<br>devel module installed now.<br><br>&lt;?php<br>// $Id:<br><br>/**<br>&nbsp;&nbsp; * @file<br>&nbsp;&nbsp; * My module to modify forms.<br>&nbsp;&nbsp; *<br>&nbsp;&nbsp; * I create a module to modify forms to my liking.<br>&nbsp;&nbsp; */<br><br><br>/**<br>&nbsp;&nbsp; * Implementation
<br>&nbsp;&nbsp; */<br><br>function myformalter_form_alter($form_id, &amp;$form) {<br>&nbsp;&nbsp;&nbsp;&nbsp;if ($form_id == &#39;edit-junk-node-form&#39;) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$form[&#39;attachments&#39;][&#39;#collapsed&#39;] = FALSE;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$form[&#39;author&#39;][&#39;#collapsed&#39;] = FALSE;
<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>}<br><br>-- Sincerely, John Thomas<br>--<br>Sincerely,<br>John Thomas<br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]<br></blockquote></div><br>