Closed (fixed)
Project:
Webform
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2009 at 14:38 UTC
Updated:
24 Feb 2010 at 03:10 UTC
Jump to comment: Most recent file
It would be useful to have hooks around component events so that e.g. caches could be cleared, record additional watchdog messages, yadda, yadda.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | webform_hook_component.patch | 5.75 KB | quicksketch |
| #2 | webform-n581358-v2.patch | 3.3 KB | damienmckenna |
| #1 | webform-n581358.patch | 2.73 KB | damienmckenna |
Comments
Comment #1
damienmckennaHave attached a patch that provides three hooks:
Comment #2
damienmckennaA corrected patch that fixes the hook_webform_component_update() happening after the update function had already returned, i.e. it never executed.
Comment #3
quicksketchI've added this to the 3.x branch, plus a hook for "presave" so that we match our existing hooks for submissions. Also added documentation and an explanation why we don't have a "load" operation.
Comment #4
damienmckennaExcellent, thank you.
Comment #5
quicksketchSeems I didn't attach the patch. Here's the set of changes.