This is probably related to #329412: enable muliple Sending Methods; also - there is a patch in messaging that is necessary for this to work #309461: Multiple Send methods.
This patch aims to add support to notifications methods to allow a user object to pass multiple messaging endpoints, such that multiple subscriptions are added at that point in time. Clearly the notifications framework supports multiple subscriptions to different messaging endpoints. The thought here is to take it a step further and allow a user to add *default* multiple selections and have notifications add those default as subscriptions on a notification add.
Comments
Comment #1
christianchristensen CreditAttribution: christianchristensen commentedPatch correction...
Comment #2
christianchristensen CreditAttribution: christianchristensen commentedPatchfile for drush make.
Comment #3
christianchristensen CreditAttribution: christianchristensen commentedAnother quick update - include an array_filter on the provided defaults to filter out the non-defaults.
Comment #4
travist CreditAttribution: travist commentedFound an issue with the patch above. It is possible to fall into an infinite function recursion if the user does not have a send_method already defined in their settings. This patch is better.
Comment #5
christianchristensen CreditAttribution: christianchristensen commentedNice catch travist! That patch is indeed better (but, I think it still provides the flexibility to messaging is now able to ease into multiple endpoints)
Comment #6
pdrake CreditAttribution: pdrake commentedFixed a couple of logic errors. See attached. Thanks for the help on this travist.
Comment #7
pdrake CreditAttribution: pdrake commentedSlightly fixed version of the above patch.
Comment #8
travist CreditAttribution: travist commentedHad to pull in the patch from #1075862: Notifications queuing adds a lot of time to node/comment inserts into this because it was causing a conflict. Here is a re-roll with that patch included.
Comment #9
travist CreditAttribution: travist commentedApparently, a previous patch removed a portion of the original. Here is the updated patch.
Comment #10
travist CreditAttribution: travist commentedChanged a variable to control the queue immediate flag.
Comment #11
travist CreditAttribution: travist commentedChanged this patch back to the original by removing the reference to #1075862: Notifications queuing adds a lot of time to node/comment inserts since it really doesn't apply here.
Comment #12
christianchristensen CreditAttribution: christianchristensen commentedUpdated this patch to be cognizant of notification_lite enqueue options with multiple send methods.
Comment #13
christianchristensen CreditAttribution: christianchristensen commentedClean up whitespace diff