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 "view" my html source for my custom cck form, I get the souce below for the form id is "node-form" as you can see<br>
<form action="/node/add/my-custom-form" accept-charset="UTF-8" method="post" id="node-form" enctype="multipart/form-data"><br><br>my hook_form_alter code is as below<br>
<br> <br>function fielddisable_form_alter(&$form, $form_state, $form_id) {<br> <br> switch ($form_id) {<br> <br> <br> case 'node_form':<br> <br> <br> return print_r($form); <br>
<br> break;<br><br><br> }<br> }<br><br>What Am I doing wrong?<br>