API page: http://api.drupal.org/api/drupal/modules--node--node.api.php/function/ho...

Describe the problem you have found:
There seems to be no working example for hook_form() in drupal 7.

As described in this forum topic, I have tried to create a hook_form implementation based on the Drupal 6 examples, but that doesn't seem to do the trick.

If anyone would be able to provide a simle working hook_form implementation for drupal 7, I'd be very grateful.

Comments

jhodgdon’s picture

Category: bug » support
Status: Active » Fixed

Here's a working example in core:
http://api.drupal.org/api/drupal/modules--poll--poll.module/function/pol...

Also the function body on the d7 hook_form page has (hopefully) a working example in it.

Automatically closed -- issue fixed for 2 weeks with no activity.