Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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,
Comment | File | Size | Author |
---|---|---|---|
#3 | forward-CTools-Wizard-Support-2617984-3-7.x.2.x.patch | 372 bytes | miaoulafrite |
Comments
Comment #2
miaoulafrite CreditAttribution: miaoulafrite commentedComment #3
miaoulafrite CreditAttribution: miaoulafrite commentedComment #6
john.oltman CreditAttribution: john.oltman commentedCommitted to 7.x-2.x and 7.x-3.x, will be in the next Dev builds within 24 hours.