see http://api.drupal.org/api/drupal/developer--topics--forms_api.html/6#com...
and please edit the docs in the right spot to clarify things a little.
see http://api.drupal.org/api/drupal/developer--topics--forms_api.html/6#com...
and please edit the docs in the right spot to clarify things a little.
Comments
Comment #1
jhodgdonThe comment (which should be removed -- please do not make comments that report issues)...
Anyway, the comment says:
Comment #2
jhodgdonSo my thoughts on this:
That function is fine -- assuming that function test_page() is a page callback from hook_menu() -- because Drupal will print the form in the right place.
So the Forms API Quickstart Guide should mention that is its assumption. Currently it doesn't mention this assumption.
Comment #3
jhodgdonAnother comment: Generally you would NEVER echo/print anything directly in a module!
Anyway, I've added a note to the Drupal 6 and Drupal 7 versions of this guide, since obviously it needed a little clarification. They were in the contrib repository, so I committed the changes.
http://drupal.org/cvs?commit=278814
http://drupal.org/cvs?commit=278812