Hello!

While adding the forward form into a CTools wizard (multi-steps forms) I found out that in the forward_form function, the $form is reset to array().

When this form is part of a wizard, when this function is called, $form is already filled with the CTools wrapper.

As a consequence, all CTools preparation is lost, and it cannot be integrated in the wizard. Simply removing the following line in forward.module solves the issue.

function forward_form($form, &$form_state, $path = NULL, $node = NULL, $nodeapi = FALSE) {
....
$form = array(); // Remove this
....

any chance to get this in the following module updates?

best,

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

miaoulafrite created an issue. See original summary.

miaoulafrite’s picture

Issue summary: View changes
miaoulafrite’s picture

Status: Active » Needs review
FileSize
372 bytes

john.oltman’s picture

Status: Needs review » Fixed

Committed to 7.x-2.x and 7.x-3.x, will be in the next Dev builds within 24 hours.

Status: Fixed » Closed (fixed)

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