1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Issue #877: Feature request: event triggerings in core plugins (e.g: forum, pm, chatbox_menu)

This commit is contained in:
Lóna Lore
2015-02-10 10:32:37 +01:00
parent db62f8bdb9
commit b8be599b9a
2 changed files with 11 additions and 3 deletions

View File

@@ -56,6 +56,7 @@ class private_message
{
$this->pm_send_receipt($pm_info);
}
e107::getEvent()->trigger('user-pm-read', $pm_id);
}
}
@@ -210,6 +211,7 @@ class private_message
if($pmid = $sql->insert('private_msg', $info))
{
e107::getEvent()->trigger('user-pm-sent', $info);
if($class == FALSE)
{
$toclass .= $u['user_name'].', ';