[development] Forms API

Henrique Recidive recidive at gmail.com
Wed Mar 18 03:25:34 UTC 2009

2009/3/17 Gordon Messmer <yinyang at eburg.com>:
> I'm trying to write a new module, and having some trouble with the forms
> API.  I'm deploying this under Drupal 5.  I've been reading the tutorials
> and documentation for the forms API.  A lot of this module is cut and paste
> from the documentation.
> I'm able to generate a form properly, and even theme it.  It displays
> properly in my browser.  However, when I submit the form, the _submit
> function isn't called.  The code is here:
> http://phantom.dragonsdawn.net/~gordon/customerportal.module
> The browser sends the form data via POST, and the web server responds with
> "200 OK", sending back the form HTML.  It doesn't log any errors. I have no
> idea how to go about debugging Drupal to determine why the _submit function
> isn't being called.  Can anyone give me some pointers?

Try changing that line:

$output .= drupal_render($form['submit']);


$output .= drupal_render();

in your theme function.

More information about the development mailing list