Drupal通知API:通知\用户\获取\订阅

Drupal通知API:通知\用户\获取\订阅,drupal,notifications,Drupal,Notifications,这是签名: 我必须为用户获取节点级订阅。如果只想获取特定内容类型的订阅,我无法确定参数4的传递内容。此调用返回所有内容类型订阅: notifications_user_get_subscriptions($author->uid, 'node', 'type'); 参数4应该是什么?“type”在数据库中只是“forum”,但传递字符串“forum”不起作用 在找到这个问题的答案之前,我一直在迭代结果并测试“type”字段。我发布了解决方案 notifications_user_get_

这是签名:

我必须为用户获取节点级订阅。如果只想获取特定内容类型的订阅,我无法确定参数4的传递内容。此调用返回所有内容类型订阅:

notifications_user_get_subscriptions($author->uid, 'node', 'type');

参数4应该是什么?“type”在数据库中只是“forum”,但传递字符串“forum”不起作用

在找到这个问题的答案之前,我一直在迭代结果并测试“type”字段。我发布了解决方案

notifications_user_get_subscriptions($author->uid, 'node', 'type');