I need to create my custom subscription but I don't know how to use hook_notifications in version 7
Also I need to alter the query of notification to add one more condition before sending the notifications
is there anybody who can help please?
I need to create my custom subscription but I don't know how to use hook_notifications in version 7
Also I need to alter the query of notification to add one more condition before sending the notifications
is there anybody who can help please?
Comments
Comment #1
bsandor commentedI'm in the same boat.
in D6 we had hook_notifications(). By implementing it and using switch for $op in case 'query' you had the option for a $query[]['join'].
This was my alteration in D6.
I'd like to do the same in D7. What's the way for giving alteration or my D6 version 'join' to wht is sent to messaging?
Anyone any idea please!?
Thanks
Comment #2
bsandor commentedchanged title of this issue
Comment #3
bsandor commentedThis article might help. I don't know how yet.
http://drupal.org/node/1796702
Comment #4
bsandor commentedComment #5
seddonym commentedHi, yes Notifications 7.x is woefully underdocumented and really different from the previous version.
It's been a while since I worked with it, but I suspect the best way to achieve what you both need to do is to define either a new subscription type, or a new event, depending on what you want to customize. The article here should give you a sense of how the various parts fit together. https://drupal.org/node/1710410
That's only a starting point but hopefully it should give you a sense of the key concepts.
After that, your best bet is to look at the source code directly.
Comment #6
bsandor commentedThat post currently says nothing about this topic