We have a content type that has multiple taxonomy selectors, for example one contains numbers, and another contains letters.
The node is created with the number 1 and the letter x, for example.
Right now, if a user subscribes to either the number 1 in the number category, or the letter x in the letter category, they get a notification.
I would like it if they get the notification only when they are subscribed to both the number 1 and the letter x
Comments
Comment #1
salvisYou will need to do some custom programming. Implement hook_subscriptions_queue() and filter the notifications according to your criteria.
We cannot burden the UI for rarely used complex requirements.
Comment #2
Lowell commentedThanks so much for the direction. Since I have not actually implemeted a hook as of yet, could you give me a little more direction?
Will this need to be a new module?
How would I approach the logic to implement/modify the queue?
I would guess that the hook is executed when the nodes are created/saved/updated and that I will somehow need to intercept at this point.
Thanks again for your help, I am looking forward to learning about hooks :-)))
Comment #3
salvisYes, you need a module, name it xyz.* and implement
Install the Devel module so dpm() will show you what's in $queue. To suppress unwanted notifications, set $queue = NULL.