Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
salvisIt 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.
Comment #1.0
salvisqueued for mailing not update
Comment #2
salvis