Allow other modules to interact with Feedback messages
| Project: | Feedback 2.0 |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
I was wondering if it were possible to add a hook that gets invoked when a new feedback entry is added. In my case, I want to use the hook to fire off an email when a new entry is added. I know the issue of email notifications has come up on the queue in the past and that the recommendation is to integrate with other modules that handle email/messaging, but such a hook could be used for more than just forwarding. Also, for people that are just looking for a one-off feature addition to the feedback entry addition could just use this hook to quickly achieve whatever they want for their purposes without adding too much overhead to the default implementation itself.
I can include a 6.x path if requested.
Also, a hook that fires when the status of a feedback entry is updated might also be useful, but I personally don't need it for my current project.
| Attachment | Size |
|---|---|
| feedback.diff.txt | 794 bytes |

#1
We can do this. However:
a) I do not want to see a contrib module called feedback_forward module, ever. The idea is wrong (reasoning in the other issue).
b) The hooks must use the new style of system object hooks in Drupal 7, which means: hook_feedback_load, hook_feedback_insert, hook_feedback_update, hook_feedback_delete