diff options
author | cash <cash.costello@gmail.com> | 2011-06-24 15:44:09 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-06-24 15:44:09 -0400 |
commit | 6eadb6791d33236aa30eb2a130dda0b2e7bd64e1 (patch) | |
tree | 610faac1ef2fd3bc5675f7c91bfffabcb040b850 | |
parent | 5dccec8307cc0a1a4fde99209de42dd6ff13fd25 (diff) | |
download | elgg-6eadb6791d33236aa30eb2a130dda0b2e7bd64e1.tar.gz elgg-6eadb6791d33236aa30eb2a130dda0b2e7bd64e1.tar.bz2 |
Fixes #3204 adds hook trigger so that wire sends out status updates
-rw-r--r-- | mod/thewire/start.php | 10 |
1 files changed, 10 insertions, 0 deletions
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; |