这是每个Acquia's documentation的签名
notifications_user_get_subscriptions($uid, $event_type,
$oid, $object = NULL, $refresh = FALSE)我使用used this method before来获取用户的节点级订阅。如果我只想获得特定内容类型的订阅,我不知道要为参数4传递什么。此调用返回所有内容类型订阅:
notifications_user_get_subscriptions($author->uid, 'node', 'type');参数4应该是什么?“type”只是数据库中的“论坛”,但是传递字符串“论坛”是不起作用的。
发布于 2010-10-28 01:15:51
直到这个问题有了答案,我才求助于迭代结果并测试'type‘字段。我发布了解决方案here。
https://stackoverflow.com/questions/4035367
复制相似问题