diff options
author | friendica <info@friendica.com> | 2012-03-25 05:06:11 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-25 05:06:11 -0700 |
commit | 873a55e9186cdf3d92b2793cd366debf237c8cda (patch) | |
tree | 4de776f941e2e30aa614925f050c22f69f2e295e | |
parent | 5bb73034088a3f69009140f6a43e0ea1d46f6a5a (diff) | |
download | volse-hubzilla-873a55e9186cdf3d92b2793cd366debf237c8cda.tar.gz volse-hubzilla-873a55e9186cdf3d92b2793cd366debf237c8cda.tar.bz2 volse-hubzilla-873a55e9186cdf3d92b2793cd366debf237c8cda.zip |
enotify plugin hook
-rwxr-xr-x | include/enotify.php | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/include/enotify.php b/include/enotify.php index e4617ab49..1918f26df 100755 --- a/include/enotify.php +++ b/include/enotify.php @@ -154,10 +154,32 @@ function notification($params) { } if($params['type'] == NOTIFY_SYSTEM) { - - + } + $h = array( + 'params' => $params, + 'subject' => $subject, + 'preamble' => $preamble, + 'epreamble' => $epreamble, + 'body' => $body, + 'sitelink' => $sitelink, + 'tsitelink' => $tsitelink, + 'hsitelink' => $hsitelink, + 'itemlink' => $itemlink + ); + + call_hooks('enotify',$h); + + $subject = $h['subject']; + $preamble = $h['preamble']; + $epreamble = $h['epreamble']; + $body = $h['body']; + $sitelink = $h['sitelink']; + $tsitelink = $h['tsitelink']; + $hsitelink = $h['hsitelink']; + $itemlink = $h['itemlink']; + // from here on everything is in the recipients language push_lang($params['language']); |