For modules that want to be notified when a user has subscribed to something. Failing that, a trigger.

Obviously not a major concern, though ;)

Comments

salvis’s picture

Yes, please supply a patch.

gengel’s picture

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.

gengel’s picture

Status: Active » Needs review
gengel’s picture

What are the odds of this patch being accepted?

salvis’s picture

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...)

salvis’s picture

Status: Needs review » Needs work

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).

salvis’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)