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

salvis’s picture

Category: feature » support
Status: Active » Fixed

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

Lowell’s picture

Thanks 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 :-)))

salvis’s picture

Yes, you need a module, name it xyz.* and implement

function xyz_subscriptions_queue_alter(array &$queue) {
  dpm($queue);
}

Install the Devel module so dpm() will show you what's in $queue. To suppress unwanted notifications, set $queue = NULL.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.