pleio/advanced_notifications

此包的最新版本(dev-master)没有提供许可证信息。

安装次数: 2,248

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 7

分支: 6

类型:elgg-plugin

dev-master 2017-02-08 09:26 UTC

This package is not auto-updated.

Last update: 2024-09-15 01:30:18 UTC


README

此插件更改了Elgg处理某些通知的方式,它不会更改通知的内容或接收者。

功能

  • 卸载通知,因此执行用户不会受发送通知数量的影响
  • 消息插件的小幅速度提升
  • 可选地用个性化的河流视图替换站点通知
  • 为开发者提供一些额外的插件钩子(见下一节)

新增功能

更改接收者

插件钩子:在 "interested_users:options" "notify:[method]" 上

参数

  • annotation(可选):发送此通知的注释
  • entity:发送此通知的实体
  • options:获取感兴趣用户的默认选项
  • method:当前使用的通知方法

结果:传递给 elgg_get_entities_from_relationship 的选项数组

更改消息正文(现有功能)

插件钩子:在 "notify:entity:message" "[entity type]" 上
或 "notify:annotation:message" "[annotation subtype]"

参数

  • entity:发送此通知的实体
    • 或 annotation:发送此通知的注释
  • to_entity:将接收通知的实体
  • method:当前使用的通知方法

结果:通知消息的内容

更改消息主题

插件钩子:在 "notify:entity:subject" "[entity type]" 上
或 "notify:annotation:subject" "[annotation subtype]"

参数

  • entity:发送此通知的实体
    • 或 annotation:发送此通知的注释
  • to_entity:将接收通知的实体
  • method:当前使用的通知方法

结果:通知消息的主题