Closed (fixed)
Project:
Notifications
Version:
6.x-2.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2009 at 09:27 UTC
Updated:
30 Dec 2009 at 21:30 UTC
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....