<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi list,
<div><br class="webkit-block-placeholder"></div><div>I'm having some difficulties with the hook_form_alter() usage (docs - <span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><a href="http://api.drupal.org/api/function/hook_form_alter/5">http://api.drupal.org/api/function/hook_form_alter/5</a><span class="Apple-style-span" style="font-family: Verdana; font-size: 11px; ">).</span></span></div><div>I made a custom module - which is for one site only - to improve the browsing/admin' experience for the new site admins on one of my websites.</div><div><br class="webkit-block-placeholder"></div><div>In my example.module, I have the following code:</div><div><div><br class="webkit-block-placeholder"></div><div>function example_form_alter($form_id, &$form) {</div><div><div> //print $form_id;</div><div><br class="webkit-block-placeholder"></div><div> // Change the standard 'selectbox' to 'radiobuttons'</div><div> if (($form_id == 'story_node_form') && ($form['taxonomy'])) {</div><div> //print $form['taxonomy']['1']['#type'];</div><div> $form['taxonomy']['1']['#type'] = 'radios';</div><div> //print $form['taxonomy']['1']['#type'];</div><div> }</div><div>}</div><div><br class="webkit-block-placeholder"></div><div>Uncommenting both "print $form['taxonomy']['1']['#type'];" reveal that $form['taxonomy']['1']['#type'] was indeed set to use radio buttons instead of the normal dropdown select box.</div><div><br></div><div>Though, it does *not* renders it like radio buttons..</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Has anyone an idea on why it isn't working? And how this could be fixed?</div><div><br class="webkit-block-placeholder"></div><div>I'm using Drupal 5.2 for development of this particular domain atm.</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Thank you for your time and help!</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Stefan Nagtegaal </div><div><br class="webkit-block-placeholder"></div></div></div></body></html>