From 6eadb6791d33236aa30eb2a130dda0b2e7bd64e1 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 24 Jun 2011 15:44:09 -0400 Subject: Fixes #3204 adds hook trigger so that wire sends out status updates --- mod/thewire/start.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mod/thewire') diff --git a/mod/thewire/start.php b/mod/thewire/start.php index 2d66c475c..9d3993b6f 100644 --- a/mod/thewire/start.php +++ b/mod/thewire/start.php @@ -278,6 +278,16 @@ function thewire_save_post($text, $userid, $access_id, $parent_guid = 0, $method if ($guid) { add_to_river('river/object/thewire/create', 'create', $post->owner_guid, $post->guid); + + // let other plugins know we are setting a user status + $params = array( + 'entity' => $post, + 'user' => $post->getOwnerEntity(), + 'message' => $post->description, + 'url' => $post->getURL(), + 'origin' => 'thewire', + ); + elgg_trigger_plugin_hook('status', 'user', $params); } return $guid; -- cgit v1.2.3