I want to add a custom buttom to a page so that users can subscribe to the node. The button should only be shown in case the user is not yet subscribed to the node. How do I check that in PHP? I think the function "notifications_get_subscriptions" might do the trick, but I don't know how to use it. Can anyone post a small code snippet?
Comments
Comment #1
advseb commentedI figured it out by myself. The following function does the trick:
Comment #2
BenK commentedSubscribing....