This patch adds a $sid parameter to the _webform_display_component() function call.

This is extremely useful for module developers as it provides the necessary context of what submission is currently being displayed.

I used it in a patch to webform_view that restores compatibility with webforms 4.x,

Comments

Status: Needs review » Needs work

The last submitted patch, webform_display_sid.patch, failed testing.

jcnventura’s picture

Status: Needs work » Needs review
StatusFileSize
new9.36 KB

Changing the paths so that testbot can apply it.

Status: Needs review » Needs work

The last submitted patch, 2: webform_display_sid.patch, failed testing.

jcnventura’s picture

Status: Needs work » Closed (duplicate)

This is no longer needed. I was using an older version of the module. It's been obsoleted by #2482659: Add ability to use submission tokens in markup components.