This has been recently moved from the API site to the handbooks: http://drupal.org/node/751826

I'd say it's a key component of working with the FormAPI, and a page for the D7 version of this needs to be created.

The first major change I've noticed is that the form callback has different parameters:

D6:

function test_form($form_state) {

D7:

/**
 * Form builder; User administration page.
 *
 * @ingroup forms
 * @see user_admin_account_validate()
 * @see user_admin_account_submit()
 */
function user_admin_account() {

No parameters on examples in core. And yet func_get_args shows stuff.

Comments

jhodgdon’s picture

Project: Drupal core » Documentation
Version: 7.x-dev »
Component: documentation » Correction/Clarification

Wrong issue queue: Handbook issues go in the Documentation project. Thanks for your interest in this page, though!

joachim’s picture

Right; but documentation issues on Drupal itself hold up release; in this queue they don't. Is there a D7 issue that should get flagged up as needing documentation?

jhodgdon’s picture

There are quite a few APIs in Drupal that need doc for D7. Are we planning to hold up release for them? If so, then file a cricital meta-issue in Drupal project, but I still think the individual issues should be in this queue as they are handbook pages.

Actually, this is particular one is a duplicate of
#709252: Form API docs need updates for Drupal 7

jhodgdon’s picture

Status: Active » Closed (duplicate)