[development] Forms API
prometheus6 at gmail.com
Wed Mar 18 03:20:38 UTC 2009
Simplest solution is to directly assign the submit function to the form.
$form['#submit'] = 'customerportal_form_submit';
On Tue, Mar 17, 2009 at 10:19 PM, Gordon Messmer <yinyang at eburg.com> wrote:
> 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:
> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development