Hello,

I'm looking for an overall approach on how to create a subscription type. What I'd like to do is require 2 conditions be met for a given node in order for it to be queued for mailing.

Example:
If Node A has taxonomy term ID of 1 and is of type (bundle) "Event"

Currently, the only subscriptions I can find examples of only key off of one field in the node. Could you give me some guidance or documentation that already exists that might help me on my journey? Thanks for your time.

Comments

salvis’s picture

It depends on how generic this is supposed to be. Your easiest approach is to implement hook_subscriptions_queue() and apply whatever additional filtering you need.

In the general case you have 'module', 'field', and 'value' (which could be anything including a serialized array) to describe your subscription, and 'load_function' and 'load_args' to queue your notifications.

salvis’s picture

Issue summary: View changes

queued for mailing not update

salvis’s picture

Issue summary: View changes
Status: Active » Closed (outdated)