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
Comment #1
jhodgdonHere'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.