]> git.mxchange.org Git - friendica.git/commitdiff
enotify plugin hook
authorfriendica <info@friendica.com>
Sun, 25 Mar 2012 12:06:11 +0000 (05:06 -0700)
committerfriendica <info@friendica.com>
Sun, 25 Mar 2012 12:06:11 +0000 (05:06 -0700)
include/enotify.php

index e4617ab496db52b680a5c7ae54319c0408bf7269..1918f26df3e2e02f523a81e222fbe29e00bbdf02 100755 (executable)
@@ -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']);