Would be nice to have hook_subscriptions_write
gengel - July 23, 2009 - 23:20
| Project: | Subscriptions |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | needs work |
Description
For modules that want to be notified when a user has subscribed to something. Failing that, a trigger.
Obviously not a major concern, though ;)

#1
Yes, please supply a patch.
#2
Okay!
Mostly, this just adds a module_invoke_all before writing to the database. The one major change was adding a subscription_delete_subscription and replacing manual SQL DELETEs with calls to this, so that all subscription deletes may also invoke the hook.
#3
#4
What are the odds of this patch being accepted?
#5
I'll get back to you this weekend, promise.
(Having a single unified patch rather than five separate ones would certainly make the reviewers life easier...)
#6
Yes, now that I think about it, it's much less work for you to create a unified patch than it is for me to apply five separate patches. So please do that (and take the current -dev, of course).