]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Group_member.php
Refactoring on notification mail generation: common profile & footer chunks pulled...
[quix0rs-gnu-social.git] / classes / Group_member.php
index 30b79bb9318ae1bb3319cf114439866b68ed68d7..5385e0f4874133d4ad2da47c798cac374204dce3 100644 (file)
@@ -162,4 +162,13 @@ class Group_member extends Memcached_DataObject
 
         return $act;
     }
+
+    /**
+     * Send notifications via email etc to group administrators about
+     * this exciting new membership!
+     */
+    public function notify()
+    {
+        mail_notify_group_join($this->getGroup(), $this->getMember());
+    }
 }