Just spent an hour wondering why my D7 multi-step form doesn't produce any output at all, when the equivalent D6 multi-step form worked just fine.

The form builders must "return $form;" instead of having the form passed by reference:

function mymodule_step_form($form, &$form_state) {
// add my fields
return $form;

Hope that saves others some time.


EclipseGc’s picture

In the switch to drupal 7's core form.inc (which is largely inspired from ctools d6 form.inc core made a move to return forms instead of passing them by reference. This will turn out to be an issue in many places within ctools including many plugin forms and wizards.

merlinofchaos’s picture

Status: Active » Fixed

This is already noted in the UPGRADE.txt :)

adaddinsane’s picture

Read documentation? What a crazy idea. :-)

Status: Fixed » Closed (fixed)

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