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.
Provide basic output of submissions by implementing Webform hooks _webform_table_country_list() and _webform_display_country_list()
Comment | File | Size | Author |
---|---|---|---|
#2 | webform_country_list-added-basic-output-2360777-2.patch | 2.88 KB | Watergate |
Comments
Comment #1
Watergate CreditAttribution: Watergate commentedComment #2
Watergate CreditAttribution: Watergate commentedFind attached a patch creating a basic form of output of Webform submissions. I've changed
hook_theme()
with Webform's_webform_theme_component()
and implemented functions to output the country code when viewing a submission (_webform_display_component()
), listing submission results in a table (_webform_table_component()
) and generating a downloadable file (_webform_csv_headers_component()
and_webform_csv_data_component()
).I've created the patch Git aware, with
git format-patch
. I would appreciate it if you apply the path usinggit am webform_country_list-added-basic-output-2360777-2.patch
. For more information see adding a commit author.Comment #4
matthias_mo CreditAttribution: matthias_mo commentedThank you Niels for yout work, very much appreciated! I commited the patch to the repository
Comment #5
Watergate CreditAttribution: Watergate commentedOk, good to see that my help is appreciated. Please let me know if I can be of any (more) help.
Niels