enotify plugin hook

This commit is contained in:
friendica 2012-03-25 05:06:11 -07:00
parent 5bb7303408
commit 873a55e918

View file

@ -155,9 +155,31 @@ function notification($params) {
if($params['type'] == NOTIFY_SYSTEM) { 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 // from here on everything is in the recipients language
push_lang($params['language']); push_lang($params['language']);