Skip to content

Conversation

@cableman
Copy link
Contributor

@cableman cableman commented Dec 11, 2024

When trying to hook into web-form submissions for audit logging (who have looked at data) in Drupal hooks that support both web-ui and API requests, one is left with hook_entity_storage_load().

But because webform is webform and uses revision this hook is called before the storeage handler has loaded the submission data... sigh*.

So this patch resolves that issue be adding a custom hook (hook__webform_post_load_data) after webform has loaded submission data for a give submission revision.

@cableman cableman requested a review from jekuaitk December 11, 2024 12:46
@cableman cableman force-pushed the feature/webform_hook_patch branch from 92b6c05 to 5e3964e Compare December 11, 2024 12:51
@cableman cableman force-pushed the feature/webform_hook_patch branch from 5e3964e to f0f2402 Compare December 11, 2024 12:55
@cableman cableman requested a review from jekuaitk December 11, 2024 12:56
@jekuaitk jekuaitk merged commit 1cec83f into OS2Forms:develop Dec 17, 2024
7 checks passed
@jekuaitk jekuaitk deleted the feature/webform_hook_patch branch December 17, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants