Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Create a function like webform_component_parent_keys(), but which returns the names instead of form_keys.
Comment | File | Size | Author |
---|---|---|---|
#5 | webform-webform_component_parent_keys-2824070-5-D7.patch | 3.42 KB | Liam Morland |
| |||
#4 | webform-webform_component_parent_keys-2824070-4-D7.patch | 1.45 KB | Liam Morland |
| |||
#2 | webform-webform_component_parent_names-2824070-2-D7.patch | 1.35 KB | Liam Morland |
|
Comments
Comment #2
Liam MorlandComment #3
DanChadwick CreditAttribution: DanChadwick commentedYou might make webform_component_parent_keys more general:
This would reduce code duplication and avoid creating a function which isn't actually used within webform itself.
Comment #4
Liam MorlandYes, good thinking. I've taken it one step further to allow requesting the entire component array.
Comment #5
Liam MorlandWith tests.
Comment #6
Liam MorlandComment #8
Liam Morland