The FAPI quick-start guide covers this, and some of the other changes.<div><a href="http://api.drupal.org/api/file/developer/topics/forms_api.html/6">http://api.drupal.org/api/file/developer/topics/forms_api.html/6</a></div>
<div><br></div><div><a href="http://api.drupal.org/api/file/developer/topics/forms_api.html/6"></a>~Rob<br><br><div class="gmail_quote">On Sun, Jul 26, 2009 at 2:10 PM, Jamie Holly <span dir="ltr"><<a href="mailto:hovercrafter@earthlink.net">hovercrafter@earthlink.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Drupal passes a form_state variable to the function first, so you need:<br>
<br>
function mymodule_form($form_state, $arguments_array) {<br><font color="#888888">
<br>
<br>
<br>
Jamie Holly<br>
<a href="http://www.intoxination.net" target="_blank">http://www.intoxination.net</a> <a href="http://www.hollyit.net" target="_blank">http://www.hollyit.net</a></font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
Joop Sint Jago wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hello,<br>
<br>
I have searched <a href="http://d.org" target="_blank">d.org</a> but cannot find the answer.<br>
<br>
I’m converting a D5 module to D6, but cannot succeed into passing some arguments when calling the form.<br>
<br>
$output = drupal_get_form(‘mymodule_form’, $arguments_array);<br>
<br>
function mymodule_form($arguments_array) {<br>
<br>
//<br>
<br>
‘#defualt_value’ => $arguments_array[‘name’],<br>
//<br>
<br>
}<br>
<br>
If I’m not mistaken nothing changed at this point with D6.<br>
<br>
Thanks.<br>
<br>
</blockquote>
</div></div></blockquote></div><br></div>