aboutsummaryrefslogtreecommitdiffstats
path: root/include/enotify.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-03 17:29:07 -0800
committerfriendica <info@friendica.com>2012-01-03 17:29:07 -0800
commit969cd145ce0e717399dbfff6cbc1a45342206e1a (patch)
tree0cb293580fa177c9fd2c089104b46a9840d34db1 /include/enotify.php
parentc583d1620955b8d170b8cbf7a106cefeecad56c8 (diff)
downloadvolse-hubzilla-969cd145ce0e717399dbfff6cbc1a45342206e1a.tar.gz
volse-hubzilla-969cd145ce0e717399dbfff6cbc1a45342206e1a.tar.bz2
volse-hubzilla-969cd145ce0e717399dbfff6cbc1a45342206e1a.zip
suggestion notifications
Diffstat (limited to 'include/enotify.php')
-rw-r--r--include/enotify.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php
index f6f291e5d..9df9b57e5 100644
--- a/include/enotify.php
+++ b/include/enotify.php
@@ -65,6 +65,19 @@ function notification($params) {
$itemlink = $params['link'];
}
+ if($params['type'] == NOTIFY_SUGGEST) {
+ $subject = sprintf( t('Friend suggestion received at %s'), $sitename);
+ $preamble = sprintf( t('You\'ve received a friend suggestion from \'%s\' at %s'), $params['source_name'], $sitename);
+ $body = t('Name:') . ' ' . $params['item']['name'] . "\n";
+ $body .= t('Photo:') . ' ' . $params['item']['photo'] . "\n";
+ $body .= sprintf( t('You may visit their profile at %s'),$params['item']['url']);
+
+ $sitelink = t('Please visit %s to approve or reject the suggestion.');
+ $tsitelink = sprintf( $sitelink, $siteurl );
+ $hsitelink = sprintf( $sitelink, '<a href="' . $siteurl . '">' . $sitename . '</a>');
+ $itemlink = $params['link'];
+ }
+
if($params['type'] == NOTIFY_CONFIRM) {
}