Create a function like webform_component_parent_keys(), but which returns the names instead of form_keys.
Liam Morland created an issue. See original summary.
You might make webform_component_parent_keys more general:
function webform_component_parent_keys($node, $component, $field_name = 'form_key') {
This would reduce code duplication and avoid creating a function which isn't actually used within webform itself.
Yes, good thinking. I've taken it one step further to allow requesting the entire component array.
With tests.
Issue #2824070: Allow webform_component_parent_keys() to return any...
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #2
liam morlandComment #3
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