I have a custom cck form in which I want to alter some of he fields on the form. When I try the code on the forms that come with drupal e.g user_profile_form, my code(at least return print_r($form);) works. <br><br>When I &quot;view&quot; my html source for  my custom cck form, I get the souce below for the form id is &quot;node-form&quot; as you can see<br>
&lt;form action=&quot;/node/add/my-custom-form&quot;  accept-charset=&quot;UTF-8&quot; method=&quot;post&quot; id=&quot;node-form&quot; enctype=&quot;multipart/form-data&quot;&gt;<br><br>my hook_form_alter code is as below<br>
<br> <br>function fielddisable_form_alter(&amp;$form, $form_state, $form_id) {<br>   <br>    switch ($form_id) {<br>   <br>     <br>        case &#39;node_form&#39;:<br>      <br>        <br>            return print_r($form);   <br>
        <br>        break;<br><br><br>    }<br>  }<br><br>What Am I doing wrong?<br>