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.
Similar to the related issue having to do with the step info block, I've found it necessary to have some contextual information about the node being edited inside the msnf_block_step_info element added to the form. In this case I've provided the #node element from the $form, which may be a little stale but at least includes information like the nid and title, which help in testing against the node (e.g., is it new or existing?) so I can customize the text inside the element using the usual preprocess or theme templates.
Comment | File | Size | Author |
---|---|---|---|
msnf-node-context-for-info-block.patch | 737 bytes | bradjones1 |
Comments
Comment #1
stBorchertMarking this as duplicate of #2203413: Include $form_state in vars for msnf_block_step_info block, because
$form_state
includes information about the node you're creating/editing.