Hi there

I've successfully added some custom data to my webform submission downloads using hook_webform_results_download_submission_information_info and hook_webform_results_download_submission_information_data but I'm stuck as to how to restrict the custom data to downloads from one specific webform node only.

I can restrict the output of hook_webform_results_download_submission_information_data to a specific webform node id but that simply prevents the values populating on other webforms. What I need is to prevent the fields showing at all. How do I get the webform node ID in hook_webform_results_download_submission_information_info?

cheers

Comments

katski created an issue. See original summary.

Liam Morland’s picture

It might not be possible to do this. A change is probably needed in webform_results_download_submission_information() to send that information to hook_webform_results_download_submission_information_info().

Liam Morland’s picture

Status: Active » Fixed

If you need more help, please re-open and provide details.

Status: Fixed » Closed (fixed)

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